Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run a code through Notepad++ to Python using

(attempt 1) Run, Run,C:\Python26\python.exe, Run

(attempt 2) Run, Run, C:\Python26\python26.exe $(FULL_CURRENT_PATH), Run

(attempt 1) opens the Python Command Window but it's blank and is not running the program I wrote in.

(attempt 2) doesn't do anything

any suggestions?

share|improve this question
Be sure to mark John T's answer as accepted if it helped you. :) – Sasha Chedygov Feb 17 '10 at 6:15

Add the location of the Python binary to your PATH environment variable, then you can call it with just the script name.

My Computer -> Properties -> Advanced -> Environment Variables -> System Variables -> PATH -> Edit

append a semicolon to the line along with your python binary location, eg:


Then you can use this in Notepad++:


this will allow you to run your program and keep the window open afterward so you can analyze it's output.

share|improve this answer
I guess I am not understanding what you mean. How about this? I have made it run with C:\Python26\python.exe "$(FULL_CURRENT_PATH)"...I forgot the ""...but it opens and closes in a flash. I think the /k is what I need but I don't know where to put it. – Mike Nov 18 '09 at 15:05
If you add C:\Python26 to your path you don't need it, but you can use cmd /k C:\Python26\python.exe "$(FULL_CURRENT_PATH)" – John T Nov 18 '09 at 15:28
success!! Thanks for the help!! – Mike Nov 18 '09 at 19:50

It's useful to hotkey shortcuts->run commands:

  1. open containing folder
  2. open current dir cmd

The 2nd will open a cmd.exe prompt, and cd to script's location.

share|improve this answer

You must log in to answer this question.