

def discover_executable(name, sitepath):
    '\n    Finds an executable in the given sitepath or in the\n    path list provided by the PATH environment variable.\n    '
    paths = ([str(sitepath)] + os.environ['PATH'].split(os.pathsep))
    for path in paths:
        full_name = os.path.join(path, name)
        if os.path.exists(full_name):
            return paths
    return None

dataset/ETHPy150Open hyde/hyde/hyde/util.py discover_executable/VarMisuse@72/130 `full_name`->`paths`