aboutsummaryrefslogtreecommitdiff
path: root/tools/interface_generator/templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/interface_generator/templates.py')
-rw-r--r--tools/interface_generator/templates.py9
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