diff options
Diffstat (limited to 'tools/interface_generator/templates.py')
-rw-r--r-- | tools/interface_generator/templates.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/interface_generator/templates.py b/tools/interface_generator/templates.py new file mode 100644 index 0000000..ecf925d --- /dev/null +++ b/tools/interface_generator/templates.py @@ -0,0 +1,9 @@ +from pathlib import Path +import re + + +def get_templates(path: Path): + template_pattern = re.compile(r"^[^_]\S+\.mako$") + result = list(path.glob("*.mako")) + result = [item for item in result if template_pattern.match(item.name)] + return result |