Fix default templates import path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user