Correct the chdir statement
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 14 Apr 2009 12:07:26 +0000 (12:07 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 14 Apr 2009 12:07:26 +0000 (12:07 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2500 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos.py

index e71a4f64d33761db54fd350d76689e75726e2b9b..109a9ab613c0498ad695d802b1d3bc31b38f233b 100755 (executable)
@@ -52,7 +52,7 @@ def showStartPage():
     QApplication.instance().dialog.show()
 
 def main():
-    os.chdir("./" + os.path.dirname(sys.argv[0]))
+    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()