Revision: 25077
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25077
Author:   campbellbarton
Date:     2009-12-02 17:11:10 +0100 (Wed, 02 Dec 2009)

Log Message:
-----------
multiple script paths broke text template menu

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bpy/utils.py

Modified: trunk/blender/release/scripts/modules/bpy/utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/utils.py  2009-12-02 15:37:07 UTC 
(rev 25076)
+++ trunk/blender/release/scripts/modules/bpy/utils.py  2009-12-02 16:11:10 UTC 
(rev 25077)
@@ -77,7 +77,9 @@
     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
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to