equal
deleted
inserted
replaced
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.5/site-packages") |
7 sys.path.insert(0, "/usr/lib64/python3.1/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('/dcs/web/staff/urbanc/HGREPOS/hgweb.config') |
46 application = hgwebdir('/home/staff/urbanc/HGREPOS/hgweb.config') |
47 wsgicgi.launch(application) |
47 wsgicgi.launch(application) |