TemplateNotFound on Window OS
Closed this issue · 2 comments
jgauby commented
On Window, this line fails :
https://github.com/pallets/jinja/blob/main/src/jinja2/loaders.py#L30
The path separator on Window is \
Jinja version 3.1.4
ThiefMaster commented
Forward slashes are perfectly fine and valid on Windows.
And template paths are not filesystem paths even though they may map to such paths. They always use forward slashes.
jgauby commented
Okay thanks, it must be the mix between the / and \ that are failing the search for my template file.