File: macho_find.py

package info (click to toggle)
python-macholib 1.16.3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 520 kB
  • sloc: python: 4,284; makefile: 131; sh: 10
file content (22 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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