There is a new method to get access to resources inside a python package: importlib.resources Use this to load the templates. Starting python 3.9 there is also the new importlib.resources.files API. This is also available as a backport package importlib_resources.
Complication: custom Mako template lookup is needed to support using this.
There is a new method to get access to resources inside a python package:
importlib.resources
Use this to load the templates. Starting python 3.9 there is also the newimportlib.resources.files
API. This is also available as a backport packageimportlib_resources
.Complication: custom Mako template lookup is needed to support using this.