cgi-bin/repos.cgi
changeset 362 3c0e119f5caa
parent 20 b5f32903acad
child 416 75df587e1bcd
equal deleted inserted replaced
360:ee9b4674113a 362:3c0e119f5caa
     2 #
     2 #
     3 # An example CGI script to export multiple hgweb repos, edit as necessary
     3 # An example CGI script to export multiple hgweb repos, edit as necessary
     4 
     4 
     5 # adjust python path if not a system-wide install:
     5 # adjust python path if not a system-wide install:
     6 import sys
     6 import sys
     7 sys.path.insert(0, "/usr/lib64/python3.1/site-packages")
     7 sys.path.append("/usr/local/lib/python2.7/site-packages/")
     8 
     8 
     9 # enable importing on demand to reduce startup time
     9 # enable importing on demand to reduce startup time
    10 from mercurial import demandimport; demandimport.enable()
    10 from mercurial import demandimport; demandimport.enable()
    11 
    11 
    12 # Uncomment to send python tracebacks to the browser if an error occurs:
    12 # Uncomment to send python tracebacks to the browser if an error occurs: