def gather_libs(selected_libs):
    libs = []
    for path in sorted(glob.iglob('bench/*')):
        lib = os.path.basename(path)
        if ((not os.path.isdir(path)) or (selected_libs and (lib not in selected_libs))):
            continue
        libs.append(lib)
    return libs
def gather_libs(selected_libs):
    libs = []
    for path in sorted(glob.iglob('bench/*')):
        lib = os.path.basename(path)
        if ((not os.path.isdir(path)) or (selected_libs and (lib not in selected_libs))):
            continue
        libs.append(lib)
    return libs