Просмотр исходного кода

- added a protection for when saving a file first time, it require a saved path and if none then it use the current working directory

Marius Stanciu 7 лет назад
Родитель
Сommit
d17fc12196
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      FlatCAMApp.py
  2. 1 1
      README.md

+ 2 - 0
FlatCAMApp.py

@@ -1665,6 +1665,8 @@ class App(QtCore.QObject):
         loc = self.defaults["global_last_save_folder"]
         if loc is None:
             loc = self.defaults["global_last_folder"]
+        if loc is None:
+            loc = os.path.dirname(__file__)
         return loc
 
     def report_usage(self, resource):

+ 1 - 1
README.md

@@ -11,7 +11,7 @@ CAD program, and create G-Code for Isolation routing.
 
 9.02.2019
 
-- 
+- added a protection for when saving a file first time, it require a saved path and if none then it use the current working directory
 
 8.02.2019