(cmd_name)
| 138 | |
| 139 | |
| 140 | def _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 | |
| 148 | def set_aws_cmd(aws_cmd): |