How to use the macholib._cmdline.main function in macholib

To help you get started, we’ve selected a few macholib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nortd / driveboardapp / other / pyinstaller / PyInstaller / lib / macholib / macho_dump.py View on Github external
sz = '64-bit'
        else:
            sz = '32-bit'

        print >>fp, '    [%s endian=%r size=%r arch=%r]' % (header.__class__.__name__, 
                header.endian, sz, ARCH_MAP[(header.endian, sz)])
        for idx, name, other in header.walkRelocatables():
            if other not in seen:
                seen.add(other)
                print >>fp, '\t' + other



if __name__ == '__main__':
    try:
        sys.exit(main(print_file))
    except KeyboardInterrupt:
        pass
github nortd / driveboardapp / other / pyinstaller / PyInstaller / lib / macholib / macho_find.py View on Github external
#!/usr/bin/env python

from macholib._cmdline import main


def print_file(fp, path):
    print >>fp, path

if __name__ == '__main__':
    try:
        main(print_file)
    except KeyboardInterrupt:
        pass
github kpdyer / fteproxy / third-party / pyinstaller-2.0 / PyInstaller / lib / macholib / macho_find.py View on Github external
def main():
    print("WARNING: 'macho_find' is deprecated, use 'python -mmacholib dump' instead")
    _main(print_file)
github pyinstaller / pyinstaller / PyInstaller / lib / macholib / macho_dump.py View on Github external
def main():
    print("WARNING: 'macho_dump' is deprecated, use 'python -mmacholib dump' instead")
    _main(print_file)
github HenriWahl / Nagstamon / build / helpers / pyinstaller-2.1 / PyInstaller / lib / macholib / macho_find.py View on Github external
def main():
    print("WARNING: 'macho_find' is deprecated, use 'python -mmacholib dump' instead")
    _main(print_file)