diff options
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/__init__.py | 2 | ||||
-rw-r--r-- | io_coat3D/folders.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index f1fc6a7c..3282dbf6 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -95,6 +95,8 @@ def every_3_seconds(): @persistent def load_handler(dummy): + global foundExchangeFolder + foundExchangeFolder = False bpy.app.timers.register(every_3_seconds) def removeFile(exportfile): diff --git a/io_coat3D/folders.py b/io_coat3D/folders.py index ec6b62e5..38df882d 100644 --- a/io_coat3D/folders.py +++ b/io_coat3D/folders.py @@ -3,15 +3,13 @@ import os def InitFolders(): - - platform = os.sys.platform coat3D = bpy.context.scene.coat3D # Global variable foundExchangeFolder (True / False) guides these steps - # 1. Read Exchange_folder.txt, it not success -> + # 1. Read Exchange_folder.txt, if not success -> # 2. Try to find exchange folder from system hard drive, if not success --> - # 3. Leave foundExchangeFolder = False + # 3. Leave foundExchangeFolder = False # 1. ################################################################# @@ -72,6 +70,7 @@ def InitFolders(): return False, '' + def updateExchangeFile(newPath): platform = os.sys.platform |