Created
September 21, 2022 17:22
-
-
Save secemp9/702ae1fe40ee41e0c5ad63c332c9413a to your computer and use it in GitHub Desktop.
subprocess without spawning terminal on windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
info = subprocess.STARTUPINFO() | |
info.dwFlags = subprocess.STARTF_USESTDHANDLES | subprocess.STARTF_USESHOWWINDOW | |
info.wShowWindow = subprocess.SW_HIDE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment