1 #!/usr/bin/env python3 2 config = b"/home/vc/hgweb.conf" 3 # enable demandloading to reduce startup time 4 from mercurial import demandimport; demandimport.enable() 5 from mercurial.hgweb import hgweb, wsgicgi 6 app = hgweb(config) 7 wsgicgi.launch(app)