hgwsgi/conduit-testing/hgweb.wsgi (5 lines of code) (raw):

#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. import os OUR_DIR = os.path.normpath(os.path.dirname(__file__)) with open(os.path.join(OUR_DIR, '..', 'bootstrap.py')) as f: exec(f.read()) application = make_application(OUR_DIR)