comparison starttreepkgweb.py @ 49:38d66dc6a1e5

merge
author Bernhard Herzog <bh@intevation.de>
date Mon, 02 Apr 2007 20:48:25 +0200
parents 467013d9d627
children
comparison
equal deleted inserted replaced
48:aed3869ac04a 49:38d66dc6a1e5
1 #! /usr/bin/python2.4
2 # Copyright (C) 2007 by Intevation GmbH
3 # Authors:
4 # Bernhard Herzog <bh@intevation.de>
5 #
6 # This program is free software under the GPL (>=v2)
7 # Read the file COPYING coming with the software for details.
8
9 """Starts the tree packager webinterface"""
10
11 import os
12 from optparse import OptionParser
13
14 from treepkg.web import runserver
15
16 def parse_commandline():
17 parser = OptionParser()
18 dirname = os.path.dirname(__file__)
19 parser.set_defaults(config_file=os.path.join(dirname, "treepkg.cfg"),
20 cherrypy_config=os.path.join(dirname, "cherrypy.cfg"))
21 parser.add_option("--config-file",
22 help=("The tree packager config file."
23 " Default treepkg.cfg"))
24 parser.add_option("--cherrypy-config",
25 help=("The cherrypy config file for the web interface."
26 " Default cherrypy.cfg"))
27 return parser.parse_args()
28
29 def main():
30 options, args = parse_commandline()
31 runserver(options.config_file, options.cherrypy_config)
32
33 main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)