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