Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.