Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2013-05-15 12:48:32 +0400
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2013-05-15 12:48:32 +0400
commit8ad05ed0f74db966e36c626dc26abdae0c3588a7 (patch)
tree3afd6d1be126778828e50ba9e22bbd86a6d5e681 /io_coat3D
parent8c47cd336de159554710629a012a36286e50aa72 (diff)
Now if applink dosen't find V4 exchange folder, it will look for V3 folder.
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/coat.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index 1c439baa..7476bc96 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -33,8 +33,12 @@ def set_exchange_folder():
if(platform == 'win32'):
exchange = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3D-CoatV4' + os.sep +'Exchange'
+ if not(os.path.isdir(exchange)):
+ exchange = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3D-CoatV3' + os.sep +'Exchange'
else:
exchange = os.path.expanduser("~") + os.sep + '3D-CoatV4' + os.sep + 'Exchange'
+ if not(os.path.isdir(exchange)):
+ exchange = os.path.expanduser("~") + os.sep + '3D-CoatV3' + os.sep + 'Exchange'
if(not(os.path.isdir(exchange))):
exchange = coat3D.exchangedir