How can I freeze a dual-mode (GUI and console) application using cx_Freeze?

前端 未结 2 2020
傲寒
傲寒 2020-12-28 23:42

I\'ve developed a Python application that runs both in the GUI mode and the console mode. If any arguments are specified, it runs in a console mode else it runs in the GUI m

2条回答
  •  星月不相逢
    2020-12-28 23:59

    Raymond Chen has written about this: http://blogs.msdn.com/b/oldnewthing/archive/2009/01/01/9259142.aspx. In short, it's not possible directly under Windows but there are some workarounds.

    I'd suggest shipping two executables - cli and gui one.

提交回复
热议问题