MCPcopy Index your code
hub / github.com/RustPython/RustPython / executable

Function executable

Lib/http/server.py:1038–1040  ·  view source on GitHub ↗

Test for executable file.

(path)

Source from the content-addressed store, hash-verified

1036
1037
1038def executable(path):
1039 """Test for executable file."""
1040 return os.access(path, os.X_OK)
1041
1042
1043class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):

Callers 1

is_executableMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected