From 09cdc8f1ac355b000ec7ada0070f57d9714cc605 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 23 Sep 2010 10:03:26 +0000 Subject: [PATCH] Remove rcc dependency. Use pyrcc4 instead, to generate the 'bertos_rc.py' python module, containing the resources. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4266 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wizard/bertos.py b/wizard/bertos.py index 3aa845f3..ebc91357 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -119,10 +119,10 @@ def main(): app.settings = QSettings("Develer", "Bertos Configurator") # Development utility lines, to be removed for production datadir = DATA_DIR - qrc, rcc = os.path.join(datadir, 'bertos.qrc'), os.path.join(datadir, 'bertos.rcc') - if not (hasattr(sys, "frozen") and sys.frozen) and newer(qrc, rcc): - os.system("rcc -binary \"%s\" -o \"%s\"" %(qrc, rcc)) - QResource.registerResource(rcc) + qrc, bertos_rc = os.path.join(datadir, 'bertos.qrc'), os.path.join(datadir, 'bertos_rc.py') + if not (hasattr(sys, "frozen") and sys.frozen) and newer(qrc, bertos_rc): + os.system("pyrcc4 \"%s\" -o \"%s\"" %(qrc, bertos_rc)) + import bertos_rc if len(sys.argv) == 3 and sys.argv[1] == "--edit": editProject(os.path.abspath(sys.argv[2])) else: -- 2.25.1