buaazp / Godef

Plugin of sublime to use godef to go to definitions accurately.
BSD 3-Clause "New" or "Revised" License
82 stars 24 forks source link

hide windows when doing Popen #12

Closed oliveagle closed 8 years ago

oliveagle commented 8 years ago

is it better to hide the window of subprocess execution?

startupinfo = None
if os.name == 'nt':
    startupinfo = subprocess.STARTUPINFO()
    startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
p = subprocess.Popen(args, stdout=subprocess.PIPE,
                     stderr=subprocess.PIPE, env=env,
                     startupinfo=startupinfo)
buaazp commented 8 years ago

That's great! I will try it on my windows PC.

buaazp commented 8 years ago

Tested, that works! Thanks again!

buaazp commented 8 years ago

Done.