I'm using the dirty way of executing a program from python. That program requires an enter from the user before it finishes. How can I force an enter. The issue of course is that I cannot issue any further command until the first command has fully executed so this won't work:
os.system(command)
os.linesep('\r\n')
On of the reasons I went back to using os.system(command) is that I couldn't get command line parameters in in the correct format. One issue is the requirement for command setting="xyz.txt"
with the double inverted commas appearing correctly, I've not found a smart way to do this as yet.
Is there a way around this? I'm doing this on Windows 7. I'm concerned that I'll need to examine the output and break when I can see the program has ended. Is there anyway to detected that program is taking keyboard input and use this fact?