at the menu choose Run select Run , at the dialog you paste c:\python 2.5.2\python.exe $(FULL_CURRENT_PATH) and if you want to save it , use Save.. there you can select your key combination.
Note that this works for saved files only! , so if you are writing a new program, save it first and then use your key combination to python you just added. This will run your program but you dont see the console.
Alternatively I use C:\Python25\Lib\site-packages\pythonwin\Pythonwin.exe $(FULL_CURRENT_PATH) this will load the file in the pythonwin editor , and there i can run or debug , it is more convinient for me.
If you nee to know what parameters you can use in general , go Plugins - NppExec - Show console dialog and in the console type HELP then look for -------- Environment variables -------- and you will get the idea.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to setup N++ in such a way that pressing a key combination, e.g. CTRL+b, will call an executable at
c:\python 2.5.2\python.exe
and pass the current file as an argument to it. How do i do that?
at the menu choose Run select Run , at the dialog you paste c:\python 2.5.2\python.exe $(FULL_CURRENT_PATH) and if you want to save it , use Save.. there you can select your key combination.
Note that this works for saved files only! , so if you are writing a new program, save it first and then use your key combination to python you just added. This will run your program but you dont see the console.
Alternatively I use C:\Python25\Lib\site-packages\pythonwin\Pythonwin.exe $(FULL_CURRENT_PATH) this will load the file in the pythonwin editor , and there i can run or debug , it is more convinient for me.
If you nee to know what parameters you can use in general , go Plugins - NppExec - Show console dialog and in the console type HELP then look for -------- Environment variables -------- and you will get the idea.