Configuration file loader capable of handling recursive inclusions and with parametrized conflict resolution for multiply found keys.
The reclimit parameter controls the number of recursive configuration file inclusions. This way we can stop early on (before python’s own recursion limit is hit) if there is a circular inclusion.
Load a configuration file, return the resulting Struct.
Call: load_config(fname,convert=None,conflict=None,recurse_key=’‘)
- fname: file to load from.
- convert: dictionary of type conversions (see read_dict())
- recurse_key: keyword in dictionary to trigger recursive file
inclusions.