Skip to content

Commit

Permalink
fixup! Deactivate searching file to add in templates directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Dec 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a856861 commit 366fc13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/warc2zim/converter.py
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 366fc13

Please sign in to comment.