##// END OF EJS Templates
doc: make gendoc.py module import policy aware...
Gregory Szorc -
r27330:6fbf1159 default
parent child Browse files
Show More
@@ -4,10 +4,12 b' where DOC is the name of a document'
4 """
4 """
5
5
6 import os, sys, textwrap
6 import os, sys, textwrap
7
8 # This script is executed during installs and may not have C extensions
9 # available. Relax C module requirements.
10 os.environ['HGMODULEPOLICY'] = 'allow'
7 # import from the live mercurial repo
11 # import from the live mercurial repo
8 sys.path.insert(0, "..")
12 sys.path.insert(0, "..")
9 # fall back to pure modules if required C extensions are not available
10 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
11 from mercurial import demandimport; demandimport.enable()
13 from mercurial import demandimport; demandimport.enable()
12 from mercurial import minirst
14 from mercurial import minirst
13 from mercurial.commands import table, globalopts
15 from mercurial.commands import table, globalopts
General Comments 0
You need to be logged in to leave comments. Login now