41 """read a POOL file and dump its content.
44 if isinstance(files, str):
50 for i,f
in enumerate(files):
51 files[i] = os.path.expandvars(os.path.expanduser(f))
56 import PyUtils.PoolFile
as PF
57 PF.PoolOpts.FAST_MODE = args.fast
58 pool_file = PF.PoolFile(fname)
59 pool_file.checkFile(sorting=args.sort_fct)
60 if args.detailed_dump:
61 dump_file = os.path.basename(fname) +
'.txt'
62 print (
"## dumping details into [%s]" % (dump_file,))
63 pool_file.detailedDump(dump_file)
66 print (
"## saving report into [%s]..." % (oname,))
67 pool_file.saveReport(oname)
68 except Exception
as e:
69 print (
"## Caught exception [%s] !!" %
str(e.__class__))
71 print (sys.exc_info()[0])
72 print (sys.exc_info()[1])