revert the commit 2505 (because it is no more needed)
[bertos.git] / wizard / bertos.py
index a8d4665091269c92ac7285def2e4e2eac687aa38..393fc561d95b5062cdabba88947cee84e12f41b7 100755 (executable)
@@ -4,7 +4,7 @@
 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
 # All rights reserved.
 #
-# $Id:$
+# $Id$
 #
 # Author: Lorenzo Berni <duplo@develer.com>
 #
@@ -52,10 +52,11 @@ def showStartPage():
     QApplication.instance().dialog.show()
 
 def main():
+    os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))
     app = QApplication(sys.argv)
     app.settings = QSettings("Develer", "Bertos Configurator")
     app.project = BProject.BProject()
-    ## Development utility lines, to be removed for production
+    # Development utility lines, to be removed for production
     if newer("bertos.qrc", "bertos.rcc"):
         os.system("rcc -binary bertos.qrc -o bertos.rcc")
     QResource.registerResource("bertos.rcc")
@@ -64,7 +65,7 @@ def main():
     elif "--edit" in sys.argv and "--create" not in sys.argv:
         editProject()
     elif "--create" in sys.argv and "--edit" in sys.argv:
-        ## TODO: need an explaining message
+        # TODO need an explaining message
         print " ".join(sys.argv)
         print "Invalid usage!"
         pass