I am calling a command line executable from python:
import subprocess
import os
def genParFiles(program):
Path = "C:/00Working/99CygwinBin/"
def exe_call(program):
fullPath = Path + program
subprocess.call(fullPath)
exe_call(program)
if __name__=='__main__':
main()
This works fine. The exe runs in the interpreter window.
Now, the program that I'm calling is waiting for me to press enter to start calculating, which I can do in the interpreter window with no problem.
My question is, how can I automate the 'enter' so I don't have to press it manually?
stdinand presumably pass input through that?stdin...Valid values arePIPE, an existing file descriptor (a positive integer), an existing file object, andNone