diff options
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/coat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index 0b44b7f8..7c6d3b7d 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() |