Per-Arne Andersen
4 years ago
committed by
GitHub
1 changed files with 4 additions and 2 deletions
@ -1,2 +1,4 @@ |
|||||
from jinja2 import Environment, PackageLoader |
import os |
||||
jinja_env = Environment(loader=PackageLoader(__name__, 'templates')) |
from jinja2 import Environment, FileSystemLoader |
||||
|
templates_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') |
||||
|
jinja_env = Environment(loader=FileSystemLoader(templates_path)) |
||||
|
Loading…
Reference in new issue