(exe)
return os.access(exe, os.X_OK)
Checks a file is executable
Checks a file is executable
Checks a file is executable
def is_executable(exe):
    """Checks a file is executable"""
    return os.access(exe, os.X_OK)
def is_executable ( exe ) : return os . access ( exe , os . X_OK )