def get_library_dependencies(library):
    contents = subprocess.check_output("ldd %s" - library, shell=True)
    contents = contents.strip()
    lines = contents.splitlines()
    dependencies = []
    for line in lines:
        m = re.search(r"([^/\s=>]+).so[.\s]", line)
        dependencies.append(m.group(1))
    dependencies.sort(key = lambda s: s.lower());
    log("Found %d dependencies in %s:" % \
            (len(dependencies), os.path.basename(library)))
    print("-" * 80)
    print("\n".join(dependencies))
    print("-" * 80)
    return dependencies
dataset/ETHPy150Open cztomczak/cefpython/cefpython/cef3/linux/installer/find-deps.py/get_library_dependencies/operator `%` -> `-`