mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 10:59:16 +00:00
fix bug for #225
This commit is contained in:
@@ -148,6 +148,7 @@ class Templategen:
|
|||||||
def _template_loader(self, relpath):
|
def _template_loader(self, relpath):
|
||||||
"""manually load template when outside of base"""
|
"""manually load template when outside of base"""
|
||||||
path = os.path.join(self.base, relpath)
|
path = os.path.join(self.base, relpath)
|
||||||
|
path = os.path.normpath(path)
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
raise TemplateNotFound(path)
|
raise TemplateNotFound(path)
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user