OS environment to my dict

This commit is contained in:
Difrex 2016-08-03 15:46:08 +03:00
parent 0c3c2014cc
commit 7610fc3152

View File

@ -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)