comparison doc/gendoc.py @ 9130:335f749cc369

gendoc: fall back to pure modules if C extensions are not available (issue1711)
author Cédric Duval <cedricduval@free.fr>
date Fri, 10 Jul 2009 19:45:31 +0200
parents 2ccb527c7b1a
children d6eecafaf12f b6cb3af61582
comparison
equal deleted inserted replaced
9129:395b0e132836 9130:335f749cc369
1 import sys, textwrap 1 import os, sys, textwrap
2 # import from the live mercurial repo 2 # import from the live mercurial repo
3 sys.path.insert(0, "..") 3 sys.path.insert(0, "..")
4 # fall back to pure modules if required C extensions are not available
5 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
4 from mercurial import demandimport; demandimport.enable() 6 from mercurial import demandimport; demandimport.enable()
5 from mercurial.commands import table, globalopts 7 from mercurial.commands import table, globalopts
6 from mercurial.i18n import gettext, _ 8 from mercurial.i18n import gettext, _
7 from mercurial.help import helptable 9 from mercurial.help import helptable
8 10