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

Method _update_script_header

backends/build_system/install.py:107–115  ·  view source on GitHub ↗
(self, install_dir)

Source from the content-addressed store, hash-verified

105 return os.path.join(install_bin_dir, exe)
106
107 def _update_script_header(self, install_dir):
108 python_exe_path = self._get_install_bin_exe(
109 install_dir, PYTHON_EXE_NAME
110 )
111 for exe in CLI_SCRIPTS:
112 exe_path = self._get_install_bin_exe(install_dir, exe)
113 lines = self._utils.read_file_lines(exe_path)
114 lines[0] = self._utils.get_script_header(python_exe_path)
115 self._utils.write_file(exe_path, "".join(lines))

Callers 1

_copy_to_install_dirMethod · 0.95

Calls 4

_get_install_bin_exeMethod · 0.95
get_script_headerMethod · 0.80
read_file_linesMethod · 0.45
write_fileMethod · 0.45

Tested by

no test coverage detected