tehryan
tehryan

Reputation: 775

is there a way to have a python application run invisibly?

I have a cherrypy application that I want to control over http with a simple gui. The problem is I don't want both the cherrypy window and the gui running at the same time. Is there a way I can make the cherrypy applications window visible?

Its being written for windows, which probably makes a difference

Upvotes: 0

Views: 207

Answers (1)

Robert Christie
Robert Christie

Reputation: 20685

Use pythonw.exe rather than python.exe It will start without a console window.

If you're using py2exe, you need to change your setup file to not use a console

from distutils.core import setup
import py2exe
setup(windows=[{"script":"hello.py"}])

Upvotes: 2

Related Questions