Skip to content

Commit b3b146f

Browse files
authored
Merge pull request #136 from AllDotPy/feat.theme_tpl
fix: the template cannot be found error on Windows (#133)
2 parents 581e1cc + 2b9b328 commit b3b146f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fletx/cli/templates/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _render_template_file(
205205
try:
206206
# Get relative path from templates directory
207207
relative_path = template_file.relative_to(self.templates_dir)
208-
template = self.jinja_env.get_template(str(relative_path))
208+
template = self.jinja_env.get_template(str(relative_path).replace(os.sep, '/'))
209209
return template.render(**context)
210210

211211
# Template not found

0 commit comments

Comments
 (0)