Changeset 2521
- Timestamp:
- Oct 29, 2009, 1:36:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/main.fcgi
r2484 r2521 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.