io_coat3D: remove variable not used

This commit is contained in:
Kalle-Samuli Riihikoski 2020-10-10 12:03:00 +03:00
parent 0496bc5f63
commit d3915b5208
1 changed files with 1 additions and 2 deletions

View File

@ -92,7 +92,6 @@ def folder_size(path):
def set_exchange_folder():
platform = os.sys.platform
coat3D = bpy.context.scene.coat3D
source = ''
if(platform == 'win32' or platform == 'darwin'):
exchange = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + 'Applinks' + os.sep + '3D-Coat' + os.sep +'Exchange'
@ -120,7 +119,7 @@ def set_exchange_folder():
if(not(os.path.isdir(applink_folder))):
os.makedirs(applink_folder)
if(os.path.isfile(exchange_path) == False):
if(os.path.isfile(exchange_path) == False or os.path.getsize(exchange_path) == 0):
file = open(exchange_path, "w")
file.write("%s"%(exchange_path))