mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
fix jinja paths on windows
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user