From 366fc134d78b97d73c206196545db709ae4f490a Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 8 Dec 2023 16:17:20 +0100 Subject: [PATCH] fixup! Deactivate searching file to add in `templates` directory. --- src/warc2zim/converter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/warc2zim/converter.py b/src/warc2zim/converter.py index 308ab1dc..33c275f4 100644 --- a/src/warc2zim/converter.py +++ b/src/warc2zim/converter.py @@ -142,8 +142,12 @@ def __init__(self, args): def init_env(self): # autoescape=False to allow injecting html entities from translated text + + # We don't have any files in templates directory. + # So `templates` directory doesn't exist and pkg_resources complains about that. + # Comment this part until we readd new file in `templates` directory env = Environment( - loader=PackageLoader("warc2zim", "templates"), + #loader=PackageLoader("warc2zim", "templates"), extensions=["jinja2.ext.i18n"], autoescape=False, )