doc/gendoc.py
changeset 27330 6fbf1159a85a
parent 26413 e0c572d4d112
child 27496 f22cd17a22e7
equal deleted inserted replaced
27329:944af8e2eb4c 27330:6fbf1159a85a
     2 
     2 
     3 where DOC is the name of a document
     3 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
    14 from mercurial.i18n import gettext, _
    16 from mercurial.i18n import gettext, _
    15 from mercurial.help import helptable, loaddoc
    17 from mercurial.help import helptable, loaddoc