def findDependencies(filename):
    filenames = commands.getoutput('otool -l "%s" | grep " name" | sort | uniq | sed -e "s/ *name //g" | grep -v "@" | sed "s/ (offset.*)//"' % filename).splitlines()

    if 'executable' not in getMachOType(filename):
        try:
            fileId = getMachOId(filename)
        except __HOLE__:
            pass
        else:
            if fileId in filenames:
                filenames.remove(fileId)

    return filenames
dataset/ETHPy150Open RobotLocomotion/director/distro/package/fixup_mach_o.py/findDependencies