From e2450e4dd9c56743a3342e023e7c45f41257f77d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 2 Dec 2009 16:11:10 +0000 Subject: [PATCH] multiple script paths broke text template menu --- release/scripts/modules/bpy/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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