mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
This is a workaround for the following code in ifupdown/template.py:37
that throw the exception with python-mako >= 1.2.0:
try:
self.logger.debug('setting template lookuppath to %s'
template_lookuppath)
lc = utils.importName('mako.lookup', 'TemplateLookup')
self.tclassargs['lookup'] = lc(
directories=template_lookuppath.split(':'))
except Exception as e:
self.logger.warning('unable to set template lookup path'
' %s (%s): are you sure \'python3-mako\''
'is installed?'
% (template_lookuppath, str(e)))
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>