This commit is contained in:
brent s. 2020-05-18 05:44:31 -04:00
parent 92f857d967
commit afd839a195
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -31,7 +31,7 @@ class RAConf(object):
def ext_init(self): def ext_init(self):
self.tpl_dir = os.path.abspath(os.path.expanduser(self.tpl_dir)) self.tpl_dir = os.path.abspath(os.path.expanduser(self.tpl_dir))
self.loader = jinja2.FileSystemLoader(self.tpl_dir) self.loader = jinja2.FileSystemLoader(self.tpl_dir)
self.tpl_env = jinja2.Environment(loader = self.loader) self.tpl_env = jinja2.Environment(loader = self.loader, extensions = ['jinja2.ext.do'])
self.tpl = self.tpl_env.get_template(self.tpl_name) self.tpl = self.tpl_env.get_template(self.tpl_name)
return(None) return(None)