fix jinja paths on windows

This commit is contained in:
Senko Rasic
2024-02-19 08:44:35 -08:00
parent c653963b00
commit 7914520825

View File

@@ -54,6 +54,9 @@ class Renderer:
Returns the resulting string
"""
# Jinja2 always uses /, even on Windows
template = template.replace('\\', '/')
tpl_object = self.jinja_env.get_template(template)
return tpl_object.render(context)