diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-02 19:11:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-02 19:11:10 +0300 |
commit | e2450e4dd9c56743a3342e023e7c45f41257f77d (patch) | |
tree | cb39d711f05d1c77ec869d584f19bd4e46da736b /release | |
parent | ce36cdac0490593efb6740ea00884f610846d01a (diff) |
multiple script paths broke text template menu
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy/utils.py | 4 |
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 |