Add check for executable made by pyinstaller
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 12:28:53 +0000 (12:28 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 12:28:53 +0000 (12:28 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2581 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos.py

index 1c52a0bfcd172e879432395fa3b8c91c2dfc0af7..f178a0a04174db2adf2ee7515afdcc55dd212952 100755 (executable)
@@ -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: