Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python/modules/render_report.py')
-rwxr-xr-xtests/python/modules/render_report.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py
index 930a08282e8..5ccd5076fbc 100755
--- a/tests/python/modules/render_report.py
+++ b/tests/python/modules/render_report.py
@@ -49,12 +49,11 @@ def print_message(message, type=None, status=''):
sys.stdout.flush()
-def blend_list(path):
- for dirpath, dirnames, filenames in os.walk(path):
- for filename in filenames:
- if filename.lower().endswith(".blend"):
- filepath = os.path.join(dirpath, filename)
- yield filepath
+def blend_list(dirpath):
+ for filename in os.listdir(dirpath):
+ if filename.lower().endswith(".blend"):
+ filepath = os.path.join(dirpath, filename)
+ yield filepath
def test_get_name(filepath):
filename = os.path.basename(filepath)