示例#1
0
def get(filename):
    is_pe = pe.is_pe(filename)
    is_elf = elf.is_elf(filename)
    if is_pe:
            return pe.get(filename) 
    elif is_elf:
        return elf.get(filename)
示例#2
0
文件: post.py 项目: rhs2132/conda
def is_obj(path):
    assert sys.platform != 'win32'
    return bool((sys.platform == 'linux2' and elf.is_elf(path)) or
                (sys.platform == 'darwin' and macho.is_macho(path)))