开发者

How to hide Cygwin Python console window in Windows?

开发者 https://www.devze.com 2022-12-31 15:41 出处:网络
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 CPytho

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

精彩评论

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

关注公众号