Commits

Yuya Nishihara committed cb9aa4e

icons: build icons_rc.py which includes all files under /icons

Comments (0)

Files changed (4)

 *~
 tortoisehg/util/__version__.py
 *.wixobj
-tortoisehg/hgqt/workbench_rc.py
+tortoisehg/hgqt/*_rc.py
 tortoisehg/hgqt/*_ui.py
         basepath = join(os.path.dirname(__file__), 'tortoisehg', 'hgqt')
         self.build_rc(os.path.join(basepath, 'workbench_rc.py'),
                       os.path.join(basepath, 'icons'), '/icons')
+        self.build_rc(os.path.join(basepath, 'icons_rc.py'),
+                      os.path.join(os.path.dirname(__file__), 'icons'),
+                      '/icons')
         for dirpath, _, filenames in os.walk(basepath):
             for filename in filenames:
                 if filename.endswith('.ui'):
 from mercurial import demandimport
 demandimport.ignore.append('win32com.shell')
 demandimport.ignore.append('tortoisehg.util.config')
+demandimport.ignore.append('icons_rc')
 demandimport.ignore.append('workbench_rc')
 demandimport.enable()
 from mercurial import ui as uimod, util

tortoisehg/hgqt/__init__.py

 # load icon resources
+import icons_rc
 import workbench_rc
+# TODO: remove workbench_rc after unifying icons directory