(f)
| 284 | |
| 285 | def _read_config_imp(filenames, dirs=None): |
| 286 | def _read_config(f): |
| 287 | meta, vars, sections, reqs = parse_config(f, dirs) |
| 288 | # recursively add sections and variables of required libraries |
| 289 | for rname, rvalue in reqs.items(): |
| 290 | nmeta, nvars, nsections, nreqs = _read_config(pkg_to_filename(rvalue)) |
| 291 | |
| 292 | # Update var dict for variables not in 'top' config file |
| 293 | for k, v in nvars.items(): |
| 294 | if not k in vars: |
| 295 | vars[k] = v |
| 296 | |
| 297 | # Update sec dict |
| 298 | for oname, ovalue in nsections[rname].items(): |
| 299 | if ovalue: |
| 300 | sections[rname][oname] += ' %s' % ovalue |
| 301 | |
| 302 | return meta, vars, sections, reqs |
| 303 | |
| 304 | meta, vars, sections, reqs = _read_config(filenames) |
| 305 |
no test coverage detected