It will be a new subprocess option to not create a new window. Note that this option would also hide the window of GUI programs that do not (intentionally) ignore SW_HIDE, such as notepad.Ĭan I work on this? I'm not sure of it's status, though.
Other platforms could simply ignore it, in contrast to writing platform-dependent code that passes startupinfo. Hiding the console is required often enough that a keyword-only parameter for this would be useful.
It would be convenient to add an argument to suppress the command prompt from popping up when using subprocess.Popen with shell=False on Windows, many users are missing the feature and these are many similar feature request questions like the following Third, I found QProcess within Qt won't pop up the command prompt in using. Second, the popping up command prompt would interrupt users and do bad to user experience of GUI applications. Script to test if subprocess spawns additional windowsįirst, It is nearly useless for the command prompt to pop up during the running time of subprocess.Popen with shell=False. Hide command prompt when using subprocess.Popen with shell=False on WindowsĮryksun, iMath, ohno, paul.moore, steve.dower, swgmma, tim.golden, zach.wareĬreated on 17:26 by iMath, last changed 14:58 by admin.