diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index 0b44b7f8859432568d98e298dd243f4816e74c06..7c6d3b7d09b1b89eb4abd10e03c63862c78035b9 100644 --- a/io_coat3D/coat.py +++ b/io_coat3D/coat.py @@ -42,8 +42,14 @@ def set_exchange_folder(): bpy.coat3D['status'] = 1 if(platform == 'win32'): exchange_path = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3DC2Blender' + os.sep + 'Exchange_folder.txt' + applink_folder = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3DC2Blender' + if(not(os.path.isdir(applink_folder))): + os.makedirs(applink_folder) else: exchange_path = os.path.expanduser("~") + os.sep + '3DC2Blender' + os.sep + 'Exchange_folder.txt' + applink_folder = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3DC2Blender' + if(not(os.path.isdir(applink_folder))): + os.makedirs(applink_folder) file = open(exchange_path, "w") file.write("%s"%(coat3D.exchangedir)) file.close()