Changeset 5b769293de40…
Parent 6f851b3634b3…
by
Changes to one file · Browse files at 5b769293de40 Showing diff from parent 6f851b3634b3 Diff from another changeset...
@@ -17,18 +17,18 @@ if os.path.isdir(testpath) and thgpath not in sys.path:
sys.path.insert(0, thgpath)
+ # compile .ui and .qrc for in-place use
+ if os.path.exists(os.path.join(os.path.dirname(__file__), 'setup.py')):
+ from distutils.dist import Distribution
+ from setup import build_qt
+ build_qt(Distribution()).run()
+
if 'HGPATH' in os.environ:
hgpath = os.environ['HGPATH']
testpath = os.path.join(hgpath, 'mercurial')
if os.path.isdir(testpath) and hgpath not in sys.path:
sys.path.insert(0, hgpath)
- # compile .ui and .qrc for in-place use
- if os.path.exists(os.path.join(os.path.dirname(__file__), 'setup.py')):
- from distutils.dist import Distribution
- from setup import build_qt
- build_qt(Distribution()).run()
-
from mercurial import demandimport
demandimport.ignore.append('win32com.shell')
demandimport.ignore.append('tortoisehg.util.config')
|
Loading...