##// END OF EJS Templates
cgi: sys.path.insert should be before importing mercurial...
Benoit Boissinot -
r5244:79279b55 default
parent child Browse files
Show More
@@ -2,6 +2,10 b''
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:
6 #import sys
7 #sys.path.insert(0, "/path/to/python/lib")
8
5 # enable demandloading to reduce startup time
9 # enable demandloading to reduce startup time
6 from mercurial import demandimport; demandimport.enable()
10 from mercurial import demandimport; demandimport.enable()
7
11
@@ -9,10 +13,6 b' from mercurial import demandimport; dema'
9 import cgitb
13 import cgitb
10 cgitb.enable()
14 cgitb.enable()
11
15
12 # adjust python path if not a system-wide install:
13 #import sys
14 #sys.path.insert(0, "/path/to/python/lib")
15
16 # If you'd like to serve pages with UTF-8 instead of your default
16 # If you'd like to serve pages with UTF-8 instead of your default
17 # locale charset, you can do so by uncommenting the following lines.
17 # locale charset, you can do so by uncommenting the following lines.
18 # Note that this will cause your .hgrc files to be interpreted in
18 # Note that this will cause your .hgrc files to be interpreted in
@@ -2,6 +2,10 b''
2 #
2 #
3 # An example CGI script to use hgweb, edit as necessary
3 # An example CGI script to use hgweb, edit as necessary
4
4
5 # adjust python path if not a system-wide install:
6 #import sys
7 #sys.path.insert(0, "/path/to/python/lib")
8
5 # enable importing on demand to reduce startup time
9 # enable importing on demand to reduce startup time
6 from mercurial import demandimport; demandimport.enable()
10 from mercurial import demandimport; demandimport.enable()
7
11
@@ -9,10 +13,6 b' from mercurial import demandimport; dema'
9 import cgitb
13 import cgitb
10 cgitb.enable()
14 cgitb.enable()
11
15
12 # adjust python path if not a system-wide install:
13 #import sys
14 #sys.path.insert(0, "/path/to/python/lib")
15
16 # If you'd like to serve pages with UTF-8 instead of your default
16 # If you'd like to serve pages with UTF-8 instead of your default
17 # locale charset, you can do so by uncommenting the following lines.
17 # locale charset, you can do so by uncommenting the following lines.
18 # Note that this will cause your .hgrc files to be interpreted in
18 # Note that this will cause your .hgrc files to be interpreted in
@@ -2,6 +2,10 b''
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:
6 #import sys
7 #sys.path.insert(0, "/path/to/python/lib")
8
5 # enable importing on demand to reduce startup time
9 # enable importing on demand to reduce startup time
6 from mercurial import demandimport; demandimport.enable()
10 from mercurial import demandimport; demandimport.enable()
7
11
@@ -9,10 +13,6 b' from mercurial import demandimport; dema'
9 import cgitb
13 import cgitb
10 cgitb.enable()
14 cgitb.enable()
11
15
12 # adjust python path if not a system-wide install:
13 #import sys
14 #sys.path.insert(0, "/path/to/python/lib")
15
16 # If you'd like to serve pages with UTF-8 instead of your default
16 # If you'd like to serve pages with UTF-8 instead of your default
17 # locale charset, you can do so by uncommenting the following lines.
17 # locale charset, you can do so by uncommenting the following lines.
18 # Note that this will cause your .hgrc files to be interpreted in
18 # Note that this will cause your .hgrc files to be interpreted in
General Comments 0
You need to be logged in to leave comments. Login now