Merge branch 'master' into blender2.8
[blender.git] / tests / python / modules / render_report.py
index 1f0022f13b6a074c135bfab6218ef6fc086d064f..8deed25e8543eda5e2d4cb9564b86c08c4a326b3 100755 (executable)
@@ -51,10 +51,11 @@ def print_message(message, type=None, status=''):
 
 
 def blend_list(dirpath):
-    for filename in os.listdir(dirpath):
-        if filename.lower().endswith(".blend"):
-            filepath = os.path.join(dirpath, filename)
-            yield filepath
+    for root, dirs, files in os.walk(dirpath):
+        for filename in files:
+            if filename.lower().endswith(".blend"):
+                filepath = os.path.join(root, filename)
+                yield filepath
 
 
 def test_get_name(filepath):