Fix default templates import path

This commit is contained in:
2025-07-12 00:49:20 +03:00
parent 8b70e83843
commit bacb1319aa

View File

@@ -31,7 +31,7 @@ class SchemaInflatorGenerator:
loader: Optional[jinja2.BaseLoader] = None,
convertor_template: str = 'inflator.jinja2'):
if loader is None:
template_path = importlib.resources.files('src.megasniff.templates')
template_path = importlib.resources.files('megasniff.templates')
loader = jinja2.FileSystemLoader(str(template_path))
self.templateLoader = loader
self.templateEnv = jinja2.Environment(loader=self.templateLoader)