

def find_lib(dir, name):
    possible_extensions = ['.so', '.dll', '.dylib']
    ext_poss = []
    for ext in possible_extensions:
        candidate = os.path.join(dir, (name + ext))
        if os.path.exists(candidate):
            ext_poss.append(candidate)
    if (len(ext_poss) != 1):
        print(('Trying to load: %s from dir: %s' % (name, candidate)))
        raise ImportError(name)
    return ext_poss[0]

dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/runtime/__init__.py find_lib/VarMisuse@92/135 `dir`->`candidate`