Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

thg: run setup.py build_qt for in-place usage

Changeset 95470e431faa

Parent cf2d80dadb38

by Yuya Nishihara

Changes to 2 files · Browse files at 95470e431faa Showing diff from parent cf2d80dadb38 Diff from another changeset...

Change 1 of 1 Show Entire File setup.py Stacked
 
98
99
100
101
 
 
102
103
104
 
98
99
100
 
101
102
103
104
105
@@ -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))
Change 1 of 1 Show Entire File thg Stacked
 
23
24
25
 
 
 
 
 
 
26
27
28
 
23
24
25
26
27
28
29
30
31
32
33
34
@@ -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')