Ejemplo n.º 1
0
def main():
    for fn in os.listdir(LIBVTK):
        path = join(LIBVTK, fn)
        if macho.is_macho(path):
            macho.install_name_change(path, ch_link_libvtk)

    for fn in os.listdir(BIN):
        path = join(BIN, fn)
        if macho.is_macho(path):
            macho.install_name_change(path, ch_link_bin)

    for fn in os.listdir(SP_VTK):
        path = join(SP_VTK, fn)
        if macho.is_macho(path):
            macho.install_name_change(path, ch_link_spvtk)
Ejemplo n.º 2
0
def main():
    for fn in os.listdir(LIBVTK):
        path = join(LIBVTK, fn)
        if macho.is_macho(path):
            macho.install_name_change(path, ch_link_libvtk)

    for fn in os.listdir(BIN):
        path = join(BIN, fn)
        if macho.is_macho(path):
            macho.install_name_change(path, ch_link_bin)

    for fn in os.listdir(SP_VTK):
        path = join(SP_VTK, fn)
        if macho.is_macho(path):
            macho.install_name_change(path, ch_link_spvtk)
Ejemplo n.º 3
0
def is_obj(path):
    assert sys.platform != 'win32'
    return bool((sys.platform.startswith('linux') and elf.is_elf(path)) or
                (sys.platform == 'darwin' and macho.is_macho(path)))
Ejemplo n.º 4
0
def is_obj(path):
    assert sys.platform != 'win32'
    return bool((sys.platform.startswith('linux') and elf.is_elf(path))
                or (sys.platform == 'darwin' and macho.is_macho(path)))
Ejemplo n.º 5
0
def is_obj(path):
    assert sys.platform != "win32"
    return bool(
        (sys.platform.startswith("linux") and elf.is_elf(path)) or (sys.platform == "darwin" and macho.is_macho(path))
    )