File: macho_find.py

package info (click to toggle)
python-macholib 1.11%2Brepack0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 508 kB
  • sloc: python: 4,273; makefile: 127
file content (21 lines) | stat: -rw-r--r-- 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
from __future__ import print_function
from macholib._cmdline import main as _main


def print_file(fp, path):
    print(path, file=fp)


def main():
    print(
        "WARNING: 'macho_find' is deprecated, "
        "use 'python -mmacholib dump' instead")
    _main(print_file)


if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        pass