changeset 106:815b33c3254a

working with -x and rich directory structure
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 20 Apr 2021 12:26:09 +0000
parents baf56ff538f8
children 007f35b9df9c
files bin/ix.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/ix.py	Tue Apr 20 11:12:35 2021 +0000
+++ b/bin/ix.py	Tue Apr 20 12:26:09 2021 +0000
@@ -73,7 +73,7 @@
   parser._action_groups.sort(key=lambda g:g.title)
   #parser.print_help()
   pa=parser.parse_args(sys.argv[1:])
-  print(pa,file=sys.stderr)
+  #print(pa,file=sys.stderr)
   if pa.length is not None:
     # We have to enforce our own check..
     if pa.offset is None or pa.filename is None:
@@ -93,7 +93,7 @@
         print("index line problem: \"%s\""%l.lstrip(),file=sys.stderr)
         exit(2)
       f=FPAT%(m[3:6])
-      process(pa,buf,open(f,'rb',0),int(m[2]),int(m[1]),whole)
+      process(pa,buf,f,int(m[2]),int(m[1]),whole)
     exit(0)
 if __name__ == "__main__":
     main()