Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diewland/65fc226a95dc4b41f39841203d6d2444 to your computer and use it in GitHub Desktop.
Save diewland/65fc226a95dc4b41f39841203d6d2444 to your computer and use it in GitHub Desktop.
pyinstall
# On Windows, running this from the binary produced by Pyinstaller
# with the ``--noconsole`` option requires redirecting everything
# (stdin, stdout, stderr) to avoid an OSError exception
# "[Error 6] the handle is invalid."
ret.update({'stdin': subprocess.PIPE,
'stderr': subprocess.PIPE,
'startupinfo': si,
'env': env })
return ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment