1
#!/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
3
pkg_resources.require("TurboGears")
7
cherrypy.lowercase_api = True
12
# first look on the command line for a desired config file,
13
# if it's not on the command line, then
14
# look for setup.py in this directory. If it's not there, this script is
17
turbogears.update_config(configfile=sys.argv[1],
18
modulename="loggerhead.config")
19
elif exists(join(dirname(__file__), "setup.py")):
20
turbogears.update_config(configfile="dev.cfg",
21
modulename="loggerhead.config")
23
turbogears.update_config(configfile="prod.cfg",
24
modulename="loggerhead.config")
27
sys.path.insert(0, '/Users/robey/code/bzr/bzr.dev')
29
from loggerhead.controllers import Root
31
turbogears.start_server(Root())