def METHOD_NAME(executable):
    path = os.environ.get("PATH")
    if not path:
        return None
    for dirname in path.split(os.pathsep):
        filename = os.path.join(dirname, executable)
        if os.path.isfile(filename) and os.access(filename, os.X_OK):
            return filename
    return None