[issue40851] subprocess.Popen: impossible to show console window when shell=True

2020-06-18 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 6.0 -> 7.0 pull_requests: +20152 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20975 ___ Python tracker

[issue40851] subprocess.Popen: impossible to show console window when shell=True

2020-06-02 Thread Eryk Sun
Eryk Sun added the comment: I think you have the right idea for improving the behavior here. It should skip setting wShowWindow if startupinfo already has the flag STARTF_USESHOWWINDOW. For example: if shell: comspec = os.environ.get("COMSPEC", "cmd.exe") args = '{} /c "{

[issue40851] subprocess.Popen: impossible to show console window when shell=True

2020-06-02 Thread akdor1154
New submission from akdor1154 : Hi all, It seems impossible to show a new console window with calling subprocess.Popen on windows with shell=True. Attempt: si = subprocess.STARTUPINFO() si.dwFlags = subprocess.STARTF_USESHOWWINDOW si.wShowWindow = 5 proc = Popen( cmd, c