exopy.utils.configobj_ops module

Utility function to work with ConfigObj objects.

exopy.utils.configobj_ops.include_configobj(new_parent, config)[source]

Make a ConfigObj part of another one and preserves the depth.

This function will copy all entries from config.

  • new_parent (configobj.Section) – Section in which information should be added.

  • config (configobj.Section) – Section to merge into the new_parent.

exopy.utils.configobj_ops.traverse_config(config, depth=-1)[source]

Traverse a ConfigObj object by yielding all sections.


depth (int) – How deep should we explore the tree of tasks. When this number reaches zero deeper children should not be explored but simply yielded.