multiple script paths broke text template menu

This commit is contained in:
2009-12-02 16:11:10 +00:00
parent ce36cdac04
commit e2450e4dd9

View File

@@ -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