Mercurial > hg-stable
changeset 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 | 395b0e132836 |
children | 2bbb8419720d 63cfacb7917e e8441597d2ee |
files | doc/gendoc.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/gendoc.py Tue Jul 14 22:42:05 2009 -0400 +++ b/doc/gendoc.py Fri Jul 10 19:45:31 2009 +0200 @@ -1,6 +1,8 @@ -import sys, textwrap +import os, sys, textwrap # import from the live mercurial repo sys.path.insert(0, "..") +# fall back to pure modules if required C extensions are not available +sys.path.append(os.path.join('..', 'mercurial', 'pure')) from mercurial import demandimport; demandimport.enable() from mercurial.commands import table, globalopts from mercurial.i18n import gettext, _