mercurial/hgweb.cgi

changeset 791
a5b2210360f9
equal deleted inserted replaced
-1:000000000000 0:1c3cff4ac07f
1 #!@l_prefix@/bin/python
2
3 import os
4 import sys
5 sys.path.insert(0, "@l_prefix@/lib/mercurial")
6
7 from mercurial import demandimport
8 demandimport.enable()
9
10 from mercurial.hgweb import hgweb, wsgicgi
11 if os.getenv('HGWEB_REPO_PATH', '') != '' and os.getenv('HGWEB_REPO_NAME', '') != '':
12 application = hgweb(os.getenv('HGWEB_REPO_PATH'), os.getenv('HGWEB_REPO_NAME'))
13 else:
14 application = hgweb('@l_prefix@/etc/mercurial/hgweb.cfg')
15 wsgicgi.launch(application)
16

mercurial