mirror of
https://github.com/godotengine/godot-editor-l10n.git
synced 2026-01-05 18:11:47 +03:00
Exclude tests folder from string extraction
This commit is contained in:
@@ -113,7 +113,7 @@ class PropertyNameProcessor:
|
|||||||
def get_source_files() -> List[str]:
|
def get_source_files() -> List[str]:
|
||||||
matches = []
|
matches = []
|
||||||
for root, dirnames, filenames in os.walk("."):
|
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"):
|
for filename in fnmatch.filter(filenames, "*.cpp"):
|
||||||
matches.append(os.path.join(root, filename))
|
matches.append(os.path.join(root, filename))
|
||||||
for filename in fnmatch.filter(filenames, "*.h"):
|
for filename in fnmatch.filter(filenames, "*.h"):
|
||||||
|
|||||||
Reference in New Issue
Block a user