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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-02 19:11:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-02 19:11:10 +0300
commite2450e4dd9c56743a3342e023e7c45f41257f77d (patch)
treecb39d711f05d1c77ec869d584f19bd4e46da736b /release/scripts
parentce36cdac0490593efb6740ea00884f610846d01a (diff)
multiple script paths broke text template menu
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/modules/bpy/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index 3af163e1069..c2830bf10cd 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -77,7 +77,9 @@ def script_paths(*args):
subdir = os.path.join(*args)
script_paths = []
for path in scripts:
- script_paths.append(os.path.join(path, subdir))
+ path_subdir = os.path.join(path, subdir)
+ if os.path.isdir(path_subdir):
+ script_paths.append(path_subdir)
return script_paths