Ver Fonte

Chdir to application directory.

Juan Pablo Caram há 11 anos atrás
pai
commit
05d6adda8b
1 ficheiros alterados com 2 adições e 0 exclusões
  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)