开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜