MCPcopy Index your code
hub / github.com/aws/aws-cli / load_config

Function load_config

awscli/botocore/configloader.py:95–106  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

93
94
95def 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
109def raw_config_parse(config_filename, parse_subsections=True):

Calls 2

raw_config_parseFunction · 0.85
build_profile_mapFunction · 0.85