Skip to content

Instantly share code, notes, and snippets.

@secemp9
Created September 21, 2022 17:22
Show Gist options
  • Save secemp9/702ae1fe40ee41e0c5ad63c332c9413a to your computer and use it in GitHub Desktop.
Save secemp9/702ae1fe40ee41e0c5ad63c332c9413a to your computer and use it in GitHub Desktop.
subprocess without spawning terminal on windows 10
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