MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / is_exe

Function is_exe

python/pymesh/boolean_unsupported.py:23–24  ·  view source on GitHub ↗
(fpath)

Source from the content-addressed store, hash-verified

21 Copied from http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python/377028#377028
22 """
23 def is_exe(fpath):
24 return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
25
26 fpath, fname = os.path.split(program)
27 if fpath:

Callers 1

whichFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected