1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 14:58:48 +00:00

fix bug for #225

This commit is contained in:
deadc0de6
2020-05-03 17:58:29 +02:00
parent 9f27c6bc48
commit aab4492556

View File

@@ -148,6 +148,7 @@ class Templategen:
def _template_loader(self, relpath):
"""manually load template when outside of base"""
path = os.path.join(self.base, relpath)
path = os.path.normpath(path)
if not os.path.exists(path):
raise TemplateNotFound(path)
with open(path, 'r') as f: