Changeset 2702 for package_branches/invirt-web/cherrypy-rebased
- Timestamp:
- Dec 20, 2009, 9:46:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/main.fcgi
r2692 r2702 10 10 base_dir = os.path.dirname(__file__) 11 11 12 if __name__=="__main__": 12 def usage(): 13 print >>sys.stderr, """%s [config] 14 15 Run server as FastCGI, with CherryPy config from "main.conf". 16 17 With `config`, run standalone with CherryPy config from `config`. 18 """ % sys.argv[0] 19 sys.exit(2) 20 21 if __name__ == "__main__": 13 22 static_dir = os.path.join(base_dir, 'static') 14 23 24 if len(sys.argv) > 2: 25 usage() 15 26 if len(sys.argv) > 1: 27 if sys.argv[1] in ('-h', '--help'): 28 usage() 16 29 conf_file = sys.argv[1] 17 30 dev = True
Note: See TracChangeset
for help on using the changeset viewer.