- def __init__(self, template_dir='share/templates/'):
- self.template_dir = os.path.abspath(os.path.expanduser(template_dir))
+ def __init__(self, template_dirs=None):
+ if template_dirs == None:
+ template_dirs = TEMPLATE_DIRS
+ self.template_dirs = [os.path.abspath(os.path.expanduser(d))
+ for d in template_dirs]