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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user