示例#1
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)))
示例#2
0
文件: post.py 项目: esc24/conda-build
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)))
示例#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))
    )