Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting NppExec to understand path of the current file in Notepad++ (for Python scripts)

Using windows for the first time in quite awhile and have picked up notepad++ and am using the nppexec plugin to run python scripts. However, I noticed that notepad++ doesn't pick up the directory that my script is saved in. For example, I place "script.py" in 'My Documents' however os.getcwd() prints "Program Files \ Notepad++"

Does anyone know how to change this behavior? Not exactly used to it in Mac.

like image 508
jlv Avatar asked Nov 05 '10 02:11

jlv


1 Answers

Notepad++ >nppexec >follow $(current directory)

like image 108
dangermouse Avatar answered Oct 22 '22 15:10

dangermouse