OS environment to my dict
This commit is contained in:
parent
0c3c2014cc
commit
7610fc3152
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user