1
# Copyright 2010-2011 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
# Initialize our paths.
5
${python-relative-path-setup}
7
sys.path.insert(0, ${scripts:parts-directory|path-repr})
9
# Delete the site module from sys instead of reloading it
10
# because modules are chained together by their imports
11
if "site" in sys.modules:
12
del sys.modules["site"]
16
os.environ.setdefault("LPRESULTS_TRACKER_SETTINGS", os.path.join(
17
${buildout:directory|path-repr}, 'configs',
18
'${buildout:config}', 'settings.conf'))
20
from lpresults.tracker.wsgi import WSGIHandler
22
application = WSGIHandler()