Changeset 1487 for pykota/trunk/bin

Show
Ignore:
Timestamp:
05/21/04 22:40:08 (21 years ago)
Author:
jalet
Message:

All the code for pkpgcounter is now in pdlanalyzer.py

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkpgcounter

    r1482 r1487  
    2424# 
    2525# $Log$ 
     26# Revision 1.11  2004/05/21 20:40:07  jalet 
     27# All the code for pkpgcounter is now in pdlanalyzer.py 
     28# 
    2629# Revision 1.10  2004/05/18 09:59:54  jalet 
    2730# pkpgcounter is now just a wrapper around the PDLAnalyzer class 
     
    5861# 
    5962 
    60 import sys 
    6163from pykota import pdlanalyzer 
    6264     
    6365if __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()