How can I hide the Cygwin Python console window on Windows?

How to hide Cygwin Python Console Window on Windows?

Neither pythonw

, nor renaming to *.pyw

, seems to apply here as Cygwin is a different assembly from the regular Windows CPython assembly.

+2


a source to share


1 answer


The little launcher .vbs 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

      

+3


a source







All Articles