Skip to content

Instantly share code, notes, and snippets.

@foobit
Created May 19, 2013 23:46
Show Gist options
  • Save foobit/5609600 to your computer and use it in GitHub Desktop.
Save foobit/5609600 to your computer and use it in GitHub Desktop.
Enable GUI support for Sublime Text build command
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