Compiles automatically the resources if needed
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 13:32:37 +0000 (13:32 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 13:32:37 +0000 (13:32 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2103 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos.py

index fea420da7aa053292863824bd98a72dc213b1b35..c731e57448c97b2c2c16a9f0a5a4ead81b7f2c36 100755 (executable)
@@ -10,6 +10,7 @@
 #
 
 import sys
+from distutils.dep_util import newer
 
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
@@ -37,6 +38,8 @@ def main():
     app = QApplication(sys.argv)
     app.settings = QSettings("Develer", "Bertos Configurator")
     app.project = BProject.BProject()
+    if newer("bertos.qrc", "bertos.rcc"):
+        os.system("rcc -binary bertos.qrc > bertos.rcc")
     QResource.registerResource("bertos.rcc")
     showStartPage()
     sys.exit(app.exec_())