[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

swgmma report at bugs.python.org
Sun Mar 15 06:21:08 EDT 2020


swgmma <jason.nader at protonmail.com> added the comment:

> Try running that script with pythonw.exe instead.

That did the trick. Confirmed that the changes are working as intended.

Running the test script posted earlier and adding the new `force_hide` kwarg to the subprocess call:

With `force_hide=False`, a command prompt window pops up.
With `force_hide=True`, no command prompt window pops up.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30082>
_______________________________________


More information about the Python-bugs-list mailing list