Skip to content

Commit

Permalink
Jinja2 debug
Browse files Browse the repository at this point in the history
Very ugly debug to understand what the issue is with the Jinja2 loader
on GH actions that cannot be reproduced locally.
  • Loading branch information
TimothyWillard committed Nov 26, 2024
1 parent 7c03736 commit 445624f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flepimop/gempyor_pkg/src/gempyor/_jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
_jinja_environment = Environment(
loader=FileSystemLoader(dirname(__file__).replace("\\", "/") + "/templates")
)
print("loader: ", FileSystemLoader(dirname(__file__).replace("\\", "/") + "/templates"))
except ValueError:
_jinja_environment = Environment(loader=PackageLoader("gempyor"))
print("loader: ", PackageLoader("gempyor"))

print("DEBUG: ", _jinja_environment.loader.list_templates())


# Functions
Expand Down

0 comments on commit 445624f

Please sign in to comment.