guevarak12
guevarak12

Reputation: 75

Running python script on notepad++ closes the command line instantly

I am trying to run a simple print statement on notepad++. I have installed the npp python plugin and I have python 2.7 installed and can run python files on the command line outside npp but whenever I try to run a python file with F5 and have "C:\Python27\python.exe "$(FULL_CURRENT_PATH)"" on the program to run prompt, my command line closes instantly. Is there anyway I can fix this?

Upvotes: 0

Views: 2067

Answers (2)

Jackssn
Jackssn

Reputation: 1614

This works:

cmd /k cd /d $(CURRENT_DIRECTORY) && python $(FULL_CURRENT_PATH)

Upvotes: 1

lakmal N Darmasena
lakmal N Darmasena

Reputation: 16

append this line and try.

x=input("press close to exit")

Upvotes: 0

Related Questions