I have a cherry application that I control through http using wxpython ui. I want to kill the server when ui closes, but I do not know how to do it. Right now I'm just doing sys.exit () in a window close event, but as a result
Traceback (most recent call last): File "ui.py", line 67, in exitevent urllib.urlopen("http://"+server+"/?sigkill=1") File "c:\python26\lib\urllib.py", line 87, in urlopen return opener.open(url) File "c:\python26\lib\urllib.py", line 206, in open return getattr(self, name)(url) File "c:\python26\lib\urllib.py", line 354, in open_http 'got a bad status line', None) IOError: ('http protocol error', 0, 'got a bad status line', None)
is that I do not stop the cherry right?
python cherrypy
dc
source share