1

I am having trouble getting NppExec to handle this bit of code:

import sys
for inString in sys.stdin :
    print(inString)

When I type into the console nothing happens, and I have to terminate the process. I get a message that the process is still running. When I run the program from Powershell it works as expected. Is there a way to fix this?

Sam
  • 341
  • 2
  • 10
  • Btw. please accept answers if they solved your issue – Vaibhav Mule May 16 '15 at 11:04
  • 1
    It didn't really fix it. If I hot Ctrl z once nothing happens. If I hit it a bunch it will run it many times. I just ended up using command prompt – Sam May 17 '15 at 18:02

1 Answers1

0

Run the file, type your inputs and tape Ctrlz

Ctrlz closes the standard input (stdin) by sending EOF.

Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52