From: duplo Date: Mon, 20 Apr 2009 12:28:53 +0000 (+0000) Subject: Add check for executable made by pyinstaller X-Git-Tag: 2.1.0~101 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e2d74f4537238431847a972b8aa86e730775f3ed;p=bertos.git Add check for executable made by pyinstaller git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2581 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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: