Changeset dc336d56a9ab…
Parent ec5e4f01d8de…
by
Changes to one file · Browse files at dc336d56a9ab Showing diff from parent ec5e4f01d8de Diff from another changeset...
@@ -334,6 +334,15 @@ if '--version' not in sys.argv:
raise
+ # Allow use of environment variables to specify the location of Mercurial
+ import modulefinder
+ path = os.getenv('MERCURIAL_PATH')
+ if path:
+ modulefinder.AddPackagePath('mercurial', path)
+ path = os.getenv('HGEXT_PATH')
+ if path:
+ modulefinder.AddPackagePath('hgext', path)
+
if 'py2exe' in sys.argv:
import hgext
hgextdir = os.path.dirname(hgext.__file__)
|
Loading...