Parcourir la source

Chdir to application directory.

Juan Pablo Caram il y a 11 ans
Parent
commit
05d6adda8b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      FlatCAMApp.py

+ 2 - 0
FlatCAMApp.py

@@ -133,9 +133,11 @@ class App(QtCore.QObject):
             json.dump([], f)
             f.close()
 
+        # Application directory. Chdir to it.
         self.app_home = os.path.dirname(os.path.realpath(__file__))
         App.log.debug("Application path is " + self.app_home)
         App.log.debug("Started in " + os.getcwd())
+        os.chdir(self.app_home)
 
         QtCore.QObject.__init__(self)