rlm@5: #!/usr/bin/env python2 rlm@0: rlm@0: config = "/home/r/proj/bortreb/hgweb.config" rlm@0: rlm@0: # Uncomment to send python tracebacks to the browser if an error occurs: rlm@0: #import cgitb; cgitb.enable() rlm@0: rlm@0: from mercurial import demandimport; demandimport.enable() rlm@0: from mercurial.hgweb import hgweb, wsgicgi rlm@0: application = hgweb(config) rlm@0: wsgicgi.launch(application)