3 # enable importing on demand to reduce startup time
4 from mercurial import demandimport; demandimport.enable()
6 from mercurial.hgweb.hgweb_mod import hgweb
7 import mercurial.hgweb.wsgicgi as wsgicgi
9 application = hgweb(os.environ["REPO_ROOT"], os.environ["REPO_NAME"])
10 wsgicgi.launch(application)