contrib/hgweb.fcgi
branchstable
changeset 50734 d5cd1fd690f3
parent 45830 c102b704edb5
equal deleted inserted replaced
50733:b1ac55606eb7 50734:d5cd1fd690f3
     7 
     7 
     8 # Uncomment and adjust if Mercurial is not installed system-wide
     8 # Uncomment and adjust if Mercurial is not installed system-wide
     9 # (consult "installed modules" path from 'hg debuginstall'):
     9 # (consult "installed modules" path from 'hg debuginstall'):
    10 # import sys; sys.path.insert(0, "/path/to/python/lib")
    10 # import sys; sys.path.insert(0, "/path/to/python/lib")
    11 
    11 
    12 # Uncomment to send python tracebacks to the browser if an error occurs:
       
    13 # import cgitb; cgitb.enable()
       
    14 
       
    15 from mercurial import demandimport
    12 from mercurial import demandimport
    16 
    13 
    17 demandimport.enable()
    14 demandimport.enable()
    18 from mercurial.hgweb import hgweb
    15 from mercurial.hgweb import hgweb
    19 from flup.server.fcgi import WSGIServer
    16 from flup.server.fcgi import WSGIServer