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

Function _search_path_for_cmd

awscli/testutils.py:140–145  ·  view source on GitHub ↗
(cmd_name)

Source from the content-addressed store, hash-verified

138
139
140def _search_path_for_cmd(cmd_name):
141 for path in os.environ.get('PATH', '').split(os.pathsep):
142 full_cmd_path = os.path.join(path, cmd_name)
143 if os.path.isfile(full_cmd_path):
144 return full_cmd_path
145 return None
146
147
148def set_aws_cmd(aws_cmd):

Callers 1

get_aws_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected