Created
May 19, 2013 23:46
-
-
Save foobit/5609600 to your computer and use it in GitHub Desktop.
Enable GUI support for Sublime Text build command
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
class AsyncProcess(object): | |
def __init__(self, arg_list, env, listener, | |
# .... (removed) code | |
# Hide the console window on Windows | |
startupinfo = None | |
if os.name == "nt": | |
startupinfo = subprocess.STARTUPINFO() | |
# comment line below to enable GUI processes | |
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment