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

Method isexec

IPython/core/magics/osm.py:84–91  ·  view source on GitHub ↗

Test for executable file on non POSIX system

(self, file)

Source from the content-addressed store, hash-verified

82 return file.is_file() and self.execre.match(file.name) is not None
83
84 def isexec(self, file):
85 """
86 Test for executable file on non POSIX system
87 """
88 if self.is_posix:
89 return self._isexec_POSIX(file)
90 else:
91 return self._isexec_WIN(file)
92
93
94 @skip_doctest

Callers 1

rehashxMethod · 0.95

Calls 2

_isexec_POSIXMethod · 0.95
_isexec_WINMethod · 0.95

Tested by

no test coverage detected