From 3408bba1ede0ddf414004e05911ade97fd31d31b Mon Sep 17 00:00:00 2001 From: Umut Date: Mon, 27 Sep 2021 13:28:14 +0300 Subject: [PATCH] fix: properly ignore measurement scripts during benchmarks --- script/progress_tracker_utils/measure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/progress_tracker_utils/measure.py b/script/progress_tracker_utils/measure.py index fe6fad3a6..e1aa822ca 100644 --- a/script/progress_tracker_utils/measure.py +++ b/script/progress_tracker_utils/measure.py @@ -258,7 +258,7 @@ def main(): scripts = list(base.glob("*.py")) # Process each script under the base directory - for script in filter(lambda script: not str(scripts[0]).endswith("measure.py"), scripts): + for script in filter(lambda script: not str(script).endswith("measure.py"), scripts): # Read the script line by line with open(script, "r", encoding="utf-8") as f: lines = f.readlines()