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.
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