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

Function _get_distribution_source

awscli/clidriver.py:169–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168
169def _get_distribution_source():
170 metadata_file = os.path.join(
171 os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data'),
172 METADATA_FILENAME,
173 )
174 metadata = {}
175 if os.path.isfile(metadata_file):
176 with open(metadata_file) as f:
177 metadata = json.load(f)
178 return metadata.get('distribution_source', 'other')
179
180
181def _get_distribution():

Callers 2

_cli_versionMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected