Admin/Mercurial/hgwebdir.cgi
changeset 28000 ca56bbb99607
parent 27725 6d133c2b681f
child 28930 6d677da7b339
equal deleted inserted replaced
27999:c26e0373c24f 28000:ca56bbb99607
     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, "/home/isabelle/html-data/isabelle-repos/mercurial-www4/lib64/python2.4/site-packages")
     7 sys.path.insert(0, "/home/isabelle-repository/repos/mercurial-www4/lib64/python2.4/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:
    41 # Then repos will list as bar and quux/baz.
    41 # Then repos will list as bar and quux/baz.
    42 #
    42 #
    43 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
    43 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
    44 # or use a dictionary with entries like 'virtual/path': '/real/path'
    44 # or use a dictionary with entries like 'virtual/path': '/real/path'
    45 
    45 
    46 application = hgwebdir('/home/isabelle/html-data/isabelle-repos/hgweb.config')
    46 application = hgwebdir('/home/isabelle-repository/repos/hgweb.config')
    47 wsgicgi.launch(application)
    47 wsgicgi.launch(application)