MCPcopy Index your code
hub / github.com/ipython/ipython / _isexec_POSIX

Method _isexec_POSIX

IPython/core/magics/osm.py:67–74  ·  view source on GitHub ↗

Test for executable on a POSIX system

(self, file)

Source from the content-addressed store, hash-verified

65
66
67 def _isexec_POSIX(self, file):
68 """
69 Test for executable on a POSIX system
70 """
71 if os.access(file.path, os.X_OK):
72 # will fail on maxOS if access is not X_OK
73 return file.is_file()
74 return False
75
76
77

Callers 1

isexecMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected