I'd like to run a process and not wait for it to return. I've tried spawn with P_NOWAIT and subprocess like this:
app = "C:\Windows\Notepad.exe"
file = "C:\Path\To\File.txt"
pid = subprocess.Popen([app, file], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE).pid
However, the console window remains until I close Notepad. Is it possible to launch the process and not wait for it to complete?