From 6651031975c785b6b156c129c958641ae3e34ab6 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 25 Jun 2024 19:47:33 +0800 Subject: [PATCH] Exclude `tests` folder from string extraction --- scripts/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common.py b/scripts/common.py index 7facabe..228648b 100644 --- a/scripts/common.py +++ b/scripts/common.py @@ -113,7 +113,7 @@ class PropertyNameProcessor: def get_source_files() -> List[str]: matches = [] for root, dirnames, filenames in os.walk("."): - dirnames[:] = [d for d in dirnames if d not in ["thirdparty"]] + dirnames[:] = [d for d in dirnames if d not in ["tests", "thirdparty"]] for filename in fnmatch.filter(filenames, "*.cpp"): matches.append(os.path.join(root, filename)) for filename in fnmatch.filter(filenames, "*.h"):