def get_template(self, name):
    if os.path.isabs(name):
        environment = get_environment(os.path.dirname(name))
        template = environment.get_template(os.path.basename(name))
    else:
        template = self.env.get_template(name)
    return template
def get_template(self, name):
    if os.path.isabs(name):
        environment = get_environment(os.path.dirname(name))
        template = environment.get_template(os.path.basename(name))
    else:
        template = self.env.get_template(name)
    return template