MCPcopy Create free account
hub / github.com/McGill-NLP/length-generalization / make_executable

Function make_executable

scripts/launcher.py:26–29  ·  view source on GitHub ↗
(script_path)

Source from the content-addressed store, hash-verified

24
25
26def make_executable(script_path):
27 mode = os.stat(str(script_path)).st_mode
28 mode |= (mode & 0o444) >> 2
29 os.chmod(str(script_path), mode)
30
31
32def get_tempfile_path():

Callers 1

save_and_make_executableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected