Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable setup: allow specification of path on which to look for Mercurial

Changeset dc336d56a9ab

Parent ec5e4f01d8de

by David Golub

Changes to one file · Browse files at dc336d56a9ab Showing diff from parent ec5e4f01d8de Diff from another changeset...

Change 1 of 1 Show Entire File setup.py Stacked
 
334
335
336
 
 
 
 
 
 
 
 
 
337
338
339
 
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
@@ -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__)