Closed oliveagle closed 8 years ago
is it better to hide the window of subprocess execution?
startupinfo = None if os.name == 'nt': startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, startupinfo=startupinfo)
That's great! I will try it on my windows PC.
Tested, that works! Thanks again!
Done.
is it better to hide the window of subprocess execution?