io_coat3D:abspath fix.

This commit is contained in:
Kalle-Samuli Riihikoski 2020-10-12 17:50:11 +03:00
parent 42ff7d5e12
commit 9a47984628
1 changed files with 2 additions and 2 deletions

View File

@ -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