1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

strip os.sep

This commit is contained in:
deadc0de6
2018-01-05 08:55:33 +01:00
parent deadab5d3a
commit cf501c21aa

View File

@@ -47,7 +47,7 @@ class Templategen:
return self._handle_text_file(src, profile)
def _handle_text_file(self, src, profile):
template_rel_path = src.split(self.base)[-1]
template_rel_path = src.split(self.base)[-1].lstrip(os.sep)
try:
template = self.env.get_template(template_rel_path)
content = template.render(profile=profile, env=os.environ)