xoa.cfgm.get_cfg_path
- xoa.cfgm.get_cfg_path(cfg, entry=None, sep='.')[source]
Get a string representing the path of a ConfigObj through sections
Example
>>> c=configobj.ConfigObj({'a':{'b':{'c':'d'}}}) >>> get_cfg_path(c['a']['b']) 'a.b' >>> get_cfg_path(c['a'], 'b') 'a.b' >>> get_cfg_path(c['a']['b'], 'c', '::') 'a::b::c'