MCPcopy Index your code
hub / github.com/pex-tool/pex / check_is_python_script

Function check_is_python_script

tests/test_executables.py:69–73  ·  view source on GitHub ↗
(shebang=None)

Source from the content-addressed store, hash-verified

67 assert not is_python_script(exe, check_executable=True)
68
69 def check_is_python_script(shebang=None):
70 # type: (Optional[str]) -> None
71 if shebang:
72 write_shebang(shebang)
73 assert is_python_script(exe, check_executable=not WINDOWS)
74
75 chmod_plus_x(exe)
76

Callers 1

test_is_python_scriptFunction · 0.85

Calls 2

is_python_scriptFunction · 0.90
write_shebangFunction · 0.85

Tested by

no test coverage detected