def get_jinja_env():
 templates_directory = os.path.abspath(os.path.join(__file__, '..', '..', templates))
 jinja_environment = jinja2.Environment(loader=jinja2.FileSystemLoader(templates_directory))
 return jinja_environment

def get_jinja_env ( ) : templates_directory = os . path . abspath ( os . path . join ( __file__ , '..' , '..' , templates ) ) jinja_environment = jinja2 . Environment ( loader = jinja2 . FileSystemLoader ( templates_directory ) ) return jinja_environment
returns a jinja environment with a filesystemloader for our templates .