3
pkg_resources.require("TurboGears")
5
from turbogears import config, update_config, start_server
7
cherrypy.lowercase_api = True
2
# -*- coding: UTF-8 -*-
3
"""Start script for the eTiny TurboGears project.
5
This script is only needed during development for running from the project
6
directory. When the project is installed, easy_install will create a
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="tinyerp.config")
18
elif exists(join(dirname(__file__), "setup.py")):
19
update_config(configfile="dev.cfg",modulename="tinyerp.config")
21
update_config(configfile="prod.cfg",modulename="tinyerp.config")
22
config.update(dict(package="tinyerp"))
24
from tinyerp.controllers import Root
11
from tinyerp.commands import start, ConfigurationError
13
if __name__ == "__main__":
16
except ConfigurationError, exc:
17
sys.stderr.write(str(exc))