diff options
Diffstat (limited to 'tests/python/modules/render_report.py')
-rwxr-xr-x | tests/python/modules/render_report.py | 11 |
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) |