Skip to content

Commit

Permalink
Provide only pkg name to Jinja2 PackageLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyWillard committed Nov 26, 2024
1 parent c14552e commit a64ca7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flepimop/gempyor_pkg/src/gempyor/_jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

# Globals
try:
_jinja_environment = Environment(loader=PackageLoader("gempyor", "templates"))
_jinja_environment = Environment(loader=PackageLoader("gempyor"))
except ValueError:
from os.path import dirname

_jinja_environment = Environment(
loader=FileSystemLoader(dirname(__file__) + "/templates")
loader=FileSystemLoader(dirname(__file__).replace("\\", "/") + "/templates")
)


Expand Down

0 comments on commit a64ca7e

Please sign in to comment.