Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2020-10-12 17:50:11 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2020-10-12 17:50:11 +0300
commit9a47984628de7e89c8a9985fd661bfee78ca11c0 (patch)
tree916d1947bf607b7b7ae6e0bd5894c9a1df04b7fb
parent42ff7d5e12fa136c3157a91fcb921e99d81e2e72 (diff)
io_coat3D:abspath fix.
-rw-r--r--io_coat3D/folders.py4
1 files changed, 2 insertions, 2 deletions
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