Contact: fumanchu@aminus.org

Log in as guest/misc to create tickets

root/pinximus/start.py

Revision 26 (checked in by fumanchu, 6 years ago)

New 'pinximus' package, an image server built with CherryPy? and Dejavu.

  • Property svn:eol-style set to native
Line 
1 import cherrypy
2 import pinximus
3
4 pinximus.init_storage()
5 pinximus.init_web()
6
7 if __name__ == "__main__":
8     # Start with the builtin server
9     cherrypy.config.update({'server.log_to_screen': True})
10     cherrypy.server.start()
11 else:
12     # Start with no server (for mod_python or other WSGI HTTP servers).
13     # You can also use this mode interactively with "import pinximus".
14     try:
15         cherrypy.server.start(initOnly=True, serverClass=None)
16     except:
17         cherrypy.log(traceback=True)
18         raise
Note: See TracBrowser for help on using the browser.