def isexec(path):
return os.path.isfile(path) and os.access(path, os.X_OK)<EOL>
Check if given path points to an executable file.

:param path: file path
:type path: str
:return: True if executable, False otherwise
:rtype: bool