From 7610fc315281b229a1e5e31d404f49031054f9fa Mon Sep 17 00:00:00 2001 From: Difrex Date: Wed, 3 Aug 2016 15:46:08 +0300 Subject: [PATCH] OS environment to my dict --- surok/templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/surok/templates.py b/surok/templates.py index 6fd3363..8056af0 100644 --- a/surok/templates.py +++ b/surok/templates.py @@ -1,4 +1,5 @@ from jinja2 import Environment, PackageLoader, Template +import os # Return rendered configuration @@ -8,5 +9,6 @@ def gen(my, jj2): f.close() template = Template(temp) + my['env'] = os.environ return template.render(my=my)