io_coat3D: hotfix for last update

This commit is contained in:
Kalle-Samuli Riihikoski 2020-11-22 14:23:58 +02:00
parent b4ca385ac9
commit 075a0e12cd
1 changed files with 4 additions and 4 deletions

View File

@ -18,17 +18,17 @@ def InitFolders():
else:
DC2Folder = os.path.expanduser("~") + os.sep + '3DC2Blender'
exchangeFolderFile = DC2Folder + os.sep + 'Exchange_folder.txt'
exchangeFile = DC2Folder + os.sep + 'Exchange_folder.txt'
if(not os.path.isdir(DC2Folder)):
os.mkdir(DC2Folder)
if(not os.path.isfile(exchangeFolderFile)):
file = open(exchangeFolderFile, 'w')
if(not os.path.isfile(exchangeFile)):
file = open(exchangeFile, 'w')
file.close()
else:
savedExchangePath = ''
folderPath = open(exchangeFolderFile)
folderPath = open(exchangeFile)
for line in folderPath:
savedExchangePath = line