1. Ronald Oussoren
  2. macholib

Commits

Ronald Oussoren  committed 815fef6

Fix macho_find and macho_dump command-line tools

These got broken by earlier refactoring

  • Participants
  • Parent commits 5f85b49
  • Branches default

Comments (0)

Files changed (2)

File macholib/macho_dump.py

View file
 import os
 import sys
 
-from macholib._cmdline import main
+from macholib._cmdline import main as _main
 from macholib.MachO import MachO
 from mach_o import *
 
                 seen.add(other)
                 print >>fp, '\t' + other
 
-
+def main():
+    _main(print_file)
 
 if __name__ == '__main__':
     try:

File macholib/macho_find.py

View file
 #!/usr/bin/env python
 
-from macholib._cmdline import main
+from macholib._cmdline import main as _main
 
 
 def print_file(fp, path):
     print >>fp, path
 
+def main():
+    _main(print_file)
+
 if __name__ == '__main__':
     try:
         main(print_file)