Changeset 95470e431faa…
Parent cf2d80dadb38…
by
Changes to 2 files · Browse files at 95470e431faa Showing diff from parent cf2d80dadb38 Diff from another changeset...
@@ -98,7 +98,8 @@ log.info('compiled %s into %s' % (qrc_file, py_file))
def run(self):
- for dirpath, _, filenames in os.walk(join('tortoisehg', 'hgqt')):
+ basepath = join(os.path.dirname(__file__), 'tortoisehg', 'hgqt')
+ for dirpath, _, filenames in os.walk(basepath):
for filename in filenames:
if filename.endswith('.ui'):
self.compile_ui(join(dirpath, filename))
|
@@ -23,6 +23,12 @@ 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...