Message370641
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 "{}"'.format (comspec, args)
if not startupinfo.dwFlags & _winapi.STARTF_USESHOWWINDOW:
startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _winapi.SW_HIDE |
|
| Date |
User |
Action |
Args |
| 2020-06-03 05:33:48 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, akdor1154 |
| 2020-06-03 05:33:48 | eryksun | set | messageid: <1591162428.06.0.0110719011566.issue40851@roundup.psfhosted.org> |
| 2020-06-03 05:33:48 | eryksun | link | issue40851 messages |
| 2020-06-03 05:33:47 | eryksun | create | |
|