From bacb1319aa4a73f02eb9803dfd48b370bd407b1a Mon Sep 17 00:00:00 2001 From: nikto_b Date: Sat, 12 Jul 2025 00:49:20 +0300 Subject: [PATCH] Fix default templates import path --- src/megasniff/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/megasniff/__init__.py b/src/megasniff/__init__.py index 759b97c..b181f2e 100644 --- a/src/megasniff/__init__.py +++ b/src/megasniff/__init__.py @@ -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)