3 pkg_resources.require("TurboGears")
5 from turbogears import update_config, start_server
7 cherrypy.lowercase_api = True
11 # first look on the command line for a desired config file,
12 # if it's not on the command line, then
13 # look for setup.py in this directory. If it's not there, this script is
16 update_config(configfile=sys.argv[1],
17 modulename="sercom.config")
18 elif exists(join(dirname(__file__), "setup.py")):
19 update_config(configfile="dev.cfg",modulename="sercom.config")
21 update_config(configfile="prod.cfg",modulename="sercom.config")
23 from sercom.controllers import Root