From e2d74f4537238431847a972b8aa86e730775f3ed Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 20 Apr 2009 12:28:53 +0000 Subject: [PATCH] Add check for executable made by pyinstaller git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2581 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wizard/bertos.py b/wizard/bertos.py index 1c52a0bf..f178a0a0 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -57,7 +57,7 @@ def main(): app.settings = QSettings("Develer", "Bertos Configurator") app.project = BProject.BProject() # Development utility lines, to be removed for production - if newer("bertos.qrc", "bertos.rcc"): + if not (hasattr(sys, "frozen") and sys.frozen) and newer("bertos.qrc", "bertos.rcc"): os.system("rcc -binary bertos.qrc -o bertos.rcc") QResource.registerResource("bertos.rcc") if "--create" in sys.argv and "--edit" not in sys.argv: -- 2.25.1