The jinja environment FileSystemLoader specifies a file path for the jinja template directories. The following is an example of usage.
_JINJA_ENV = Environment(loader = FileSystemLoader('Template', followlinks = True))
However, this file path specification is dependent on the current working directory, which therefore requires us to run our scripts within the same directory containing the script. Instead, specify the template directory relative to the script itself, allowing us to run the script in any working directory.
The jinja environment FileSystemLoader specifies a file path for the jinja template directories. The following is an example of usage.
However, this file path specification is dependent on the current working directory, which therefore requires us to run our scripts within the same directory containing the script. Instead, specify the template directory relative to the script itself, allowing us to run the script in any working directory.