How to hide Cygwin Python console window in Windows?
How to hide Cygwin Python console window in Windows?
Neither 开发者_如何学编程pythonw
, nor renaming to *.pyw
does not seem to apply here, since Cygwin is a different build from regular Windows CPython build.
A small .vbs launcher script should do the trick:
COMMAND = "c:\cygwin\bin\python <path_to_your.py>"
Set wshell = CreateObject("WScript.Shell")
Set proc = wshell.Environment("Process")
proc("PATH") = "c:\cygwin\bin;" & proc("PATH")
wshell.Run COMMAND, 0
精彩评论