1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00
This commit is contained in:
deadc0de6
2018-05-02 17:36:29 +02:00
parent a06ff19eba
commit 24ef632f4c

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].lstrip(os.sep)
template_rel_path = os.path.relpath(src, self.base)
try:
template = self.env.get_template(template_rel_path)
content = template.render(profile=profile, env=os.environ)