diff options
-rw-r--r-- | io_coat3D/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 83f11a0e..3882fd89 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -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)) |