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