1 2 3 4 5 6 7
#!/usr/bin/env python from mercurial.hgweb.hgwebdir_mod import hgwebdir from mercurial.hgweb.request import wsgiapplication def make_web_app(): return hgwebdir("/path/to/hgwebdir.config") application = wsgiapplication(make_web_app)