0

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?

2
  • Make your script do something to not let it end. Commented Sep 8, 2014 at 0:49
  • like put a raw_input()? Commented Sep 8, 2014 at 0:51

2 Answers 2

1

This works:

cmd /k cd /d $(CURRENT_DIRECTORY) && python $(FULL_CURRENT_PATH)
Sign up to request clarification or add additional context in comments.

Comments

0

append this line and try.

x=input("press close to exit")

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.