Parse a INI config with profiles. This will parse an INI config file and map top level profiles into a top level "profile" key. If you want to parse an INI file and map all section names to top level keys, use ``raw_config_parse`` instead.
(config_filename)
| 93 | |
| 94 | |
| 95 | def load_config(config_filename): |
| 96 | """Parse a INI config with profiles. |
| 97 | |
| 98 | This will parse an INI config file and map top level profiles |
| 99 | into a top level "profile" key. |
| 100 | |
| 101 | If you want to parse an INI file and map all section names to |
| 102 | top level keys, use ``raw_config_parse`` instead. |
| 103 | |
| 104 | """ |
| 105 | parsed = raw_config_parse(config_filename) |
| 106 | return build_profile_map(parsed) |
| 107 | |
| 108 | |
| 109 | def raw_config_parse(config_filename, parse_subsections=True): |