# HG changeset patch # User Cédric Duval # Date 2009-07-10 17:45:31 # Node ID 335f749cc36915b80ba1397cd9d11f7605f5d50c # Parent 395b0e132836995e5775f6e54af55338035ec49a gendoc: fall back to pure modules if C extensions are not available (issue1711) diff --git a/doc/gendoc.py b/doc/gendoc.py --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -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, _