Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save file, then open and close Python Shell from Notepad++ ???

Status
Not open for further replies.

chemebabak

Technical User
Mar 28, 2012
12
US
Re: Python 3.6.0 and Notepad++

From the Notepad++ run menu I run:
"C:\Program Files (x86)\Python36-32\Lib\idlelib\idle.bat" -r "$(FULL_CURRENT_PATH)"

Which opens the Python 3.6.0 Shell and runs the Python code. However, it does not close any open Python Shell windows. Neither does it save the file prior to opening the shell.

I would like to:
1. Save my current *.py file that I am opening in N++,
2. Close any open Python Shell windows,
3. run: "C:\Program Files (x86)\Python36-32\Lib\idlelib\idle.bat" -r "$(FULL_CURRENT_PATH)"
How can I modify the code to close any open Python Shell windows?

By the way, what is "-r" after "\idle.bat"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top