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.
6
sys.path.insert(0, "/srv/resultstracker.ubuntu.com/production/build/parts/scripts")
8
# Delete the site module from sys instead of reloading it
9
# because modules are chained together by their imports
10
if "site" in sys.modules:
11
del sys.modules["site"]
15
os.environ.setdefault("LPRESULTS_TRACKER_SETTINGS", "/srv/resultstracker.ubuntu.com/production/configs/production/settings.conf")
17
from lpresults.tracker.wsgi import WSGIHandler
19
application = WSGIHandler()