From a64ca7e91ab64611476fce7ea16a04a62d766fdc Mon Sep 17 00:00:00 2001 From: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:35:09 -0500 Subject: [PATCH] Provide only pkg name to Jinja2 `PackageLoader` --- flepimop/gempyor_pkg/src/gempyor/_jinja.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flepimop/gempyor_pkg/src/gempyor/_jinja.py b/flepimop/gempyor_pkg/src/gempyor/_jinja.py index 9495996f1..ce086e76b 100644 --- a/flepimop/gempyor_pkg/src/gempyor/_jinja.py +++ b/flepimop/gempyor_pkg/src/gempyor/_jinja.py @@ -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") )