{{ __file__ }}
allows you to access the the path to the YML file.
{{ Path(...) }}
allows you convert any string to a pathlib object. When using this Jinja function, users also get access to Path's .
{{ __file__ }}
and {{ Path(...) }}
can be used together to define relative paths.