Don't permit to edit a project.
[bertos.git] / wizard / bertos.py
index 393fc561d95b5062cdabba88947cee84e12f41b7..695a862782bfa826359dfd0bea73c1f9e7d69d7a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python
 # encoding: utf-8
 #
 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
@@ -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:
@@ -70,7 +70,7 @@ def main():
         print "Invalid usage!"
         pass
     else:
-        showStartPage()
+        newProject()
         sys.exit(app.exec_())
 
 if __name__ == '__main__':