Use jinja2.PackageLoader
authorMark Hansen <mark@markhansen.co.nz>
Tue, 2 Jun 2020 11:25:54 +0000 (21:25 +1000)
committerMark Hansen <mark@markhansen.co.nz>
Wed, 3 Jun 2020 10:41:42 +0000 (20:41 +1000)
commit43c7d924fabc7b64ad476305d77617ba83157c7a
treec1bca00d25592877d35f83b8acb9f5a361d0b35c
parent40887c558cafdfdb9739afae6716d8fb16e0fd68
Use jinja2.PackageLoader

This resolves the path to the templates/ folder relative to the python
package (templates.py).

The FileSystemLoader was relative to current working directory.

After this, it doesn't matter what your current working directory is.
doc/infosrc/templates.py