Trying to fix config parser
This commit is contained in:
parent
466557317a
commit
9df5862e47
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
{% for section in config -%}
|
{% for section in config -%}
|
||||||
[{{ section }}]
|
[{{ section }}]
|
||||||
{% for key, val in config[section].iteritems() -%}
|
{% for key, val in config[section].iteritems() -%}
|
||||||
{% if val is True -%}
|
{% if val == True -%}
|
||||||
{{ key }} = true
|
{{ key }} = true
|
||||||
{% elif val is False -%}
|
{% elif val == False -%}
|
||||||
{{ key }} = false
|
{{ key }} = false
|
||||||
{% else -%}
|
{% else -%}
|
||||||
{{ key }} = "{{ val }}"
|
{{ key }} = "{{ val }}"
|
||||||
|
|
Loading…
Reference in a new issue