Commit 4b37e0e7 authored by Xavier Thompson's avatar Xavier Thompson

slapformat: WIP: fix reading definition file

parent c89c7a0a
......@@ -216,13 +216,12 @@ class FormatConfig(Parameters, Options):
# XXX more logs
class Definition(defaultdict):
def __init__(self, definition_file):
super().__init__(lambda: defaultdict(type(None)))
if definition_file:
configp = configparser.ConfigParser(interpolation=None)
configp.read(conf.input_definition_file)
configp.read(definition_file)
for s in configp.sections():
self[s] = dict(configp.items(s))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment