[Bf-extensions-cvs] [9a479846] master: io_coat3D:abspath fix.

Kalle-Samuli Riihikoski noreply at git.blender.org
Mon Oct 12 16:50:14 CEST 2020


Commit: 9a47984628de7e89c8a9985fd661bfee78ca11c0
Author: Kalle-Samuli Riihikoski
Date:   Mon Oct 12 17:50:11 2020 +0300
Branches: master
https://developer.blender.org/rBA9a47984628de7e89c8a9985fd661bfee78ca11c0

io_coat3D:abspath fix.

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

M	io_coat3D/folders.py

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

diff --git a/io_coat3D/folders.py b/io_coat3D/folders.py
index 703167ce..f4637d3c 100644
--- a/io_coat3D/folders.py
+++ b/io_coat3D/folders.py
@@ -26,7 +26,7 @@ def InitFolders():
             break
         folderPathh.close()
 
-        if(os.path.isdir(folderPath) and folderPath.rfind('Exchange') >= 0):
+        if(os.path.isdir(os.path.abspath(folderPath)) and folderPath.rfind('Exchange') >= 0):
             coat3D.exchangeFolder = folderPath
             return True, coat3D.exchangeFolder
 
@@ -60,7 +60,7 @@ def InitFolders():
             file.close()
         
         file = open(exchangeFile, "w")
-        file.write("%s"%(coat3D.exchangeFolder))
+        file.write("%s"%(os.path.abspath(coat3D.exchangeFolder)))
         file.close()
 
         return True, coat3D.exchangeFolder



More information about the Bf-extensions-cvs mailing list