Changeset 1487 for pykota/trunk/bin
- Timestamp:
- 05/21/04 22:40:08 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkpgcounter
r1482 r1487 24 24 # 25 25 # $Log$ 26 # Revision 1.11 2004/05/21 20:40:07 jalet 27 # All the code for pkpgcounter is now in pdlanalyzer.py 28 # 26 29 # Revision 1.10 2004/05/18 09:59:54 jalet 27 30 # pkpgcounter is now just a wrapper around the PDLAnalyzer class … … 58 61 # 59 62 60 import sys61 63 from pykota import pdlanalyzer 62 64 63 65 if __name__ == "__main__" : 64 if (len(sys.argv) < 2) or ((not sys.stdin.isatty()) and ("-" not in sys.argv[1:])) : 65 sys.argv.append("-") 66 67 totalsize = 0 68 for arg in sys.argv[1:] : 69 try : 70 parser = pdlanalyzer.PDLAnalyzer(arg) 71 totalsize += parser.getJobSize() 72 except TypeError, msg : 73 sys.stderr.write("%s\n" % msg) 74 sys.stderr.flush() 75 print "%s" % totalsize 66 pdlanalyzer.main()