Exclude tests folder from string extraction

This commit is contained in:
Haoyu Qiu
2024-06-25 19:47:33 +08:00
parent 76d6e17edb
commit 6651031975

View File

@@ -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"):