From: duplo Date: Fri, 19 Dec 2008 13:32:37 +0000 (+0000) Subject: Compiles automatically the resources if needed X-Git-Tag: 2.1.0~579 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=86f58e6401c1715dd0f5718fbe7c670857e96a00;p=bertos.git Compiles automatically the resources if needed git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2103 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos.py b/wizard/bertos.py index fea420da..c731e574 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -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_())