[Bf-extensions-cvs] [3ff3487a] master: io_coat3D: Fix makedir error

Kalle-Samuli Riihikoski noreply at git.blender.org
Sun Nov 22 00:33:27 CET 2020


Commit: 3ff3487ac237f4284436275bc27babb47ffe6506
Author: Kalle-Samuli Riihikoski
Date:   Sun Nov 22 01:33:20 2020 +0200
Branches: master
https://developer.blender.org/rBA3ff3487ac237f4284436275bc27babb47ffe6506

io_coat3D: Fix makedir error

===================================================================

M	io_coat3D/folders.py

===================================================================

diff --git a/io_coat3D/folders.py b/io_coat3D/folders.py
index 38df882d..b0594786 100644
--- a/io_coat3D/folders.py
+++ b/io_coat3D/folders.py
@@ -30,7 +30,10 @@ def InitFolders():
             coat3D.exchangeFolder = folderPath
             return True, coat3D.exchangeFolder
     else:
-        os.makedirs(os.path.dirname(exchangeFile))
+        try:
+            os.makedirs(os.path.dirname(exchangeFile))
+        except:
+            pass
 
 
     # 2. #################################################################



More information about the Bf-extensions-cvs mailing list