From 86f58e6401c1715dd0f5718fbe7c670857e96a00 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 19 Dec 2008 13:32:37 +0000 Subject: [PATCH] Compiles automatically the resources if needed git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2103 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos.py | 3 +++ 1 file changed, 3 insertions(+) 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_()) -- 2.25.1