generic template path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-01-20 13:04:24 +01:00
parent 2511dd42e1
commit 3c1702bb6a

View File

@@ -23,7 +23,9 @@ def get_template(name):
line_comment_prefix="%#", line_comment_prefix="%#",
trim_blocks=True, trim_blocks=True,
autoescape=False, autoescape=False,
loader=jinja2.FileSystemLoader(os.path.abspath("templates/")), loader=jinja2.FileSystemLoader(
os.path.abspath(os.path.join(os.path.dirname(__file__), "templates/"))
),
) )
template = latex_jinja_env.get_template(f"{name}.tex.jinja") template = latex_jinja_env.get_template(f"{name}.tex.jinja")
return template return template