diff options
Diffstat (limited to 'lib/spack/external/_vendoring/macholib/macho_find.py')
-rw-r--r-- | lib/spack/external/_vendoring/macholib/macho_find.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/spack/external/_vendoring/macholib/macho_find.py b/lib/spack/external/_vendoring/macholib/macho_find.py new file mode 100644 index 0000000000..a963c36dcc --- /dev/null +++ b/lib/spack/external/_vendoring/macholib/macho_find.py @@ -0,0 +1,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 |