CMS 3D CMS Logo

Classes | Functions
storeTreeInfo Namespace Reference

Classes

class  TreeAnalyzer
 

Functions

def main ()
 

Function Documentation

def storeTreeInfo.main ( )

Definition at line 75 of file storeTreeInfo.py.

References str.

75 def main():
76 
77  import getopt
78 
79  try:
80  opts, args = getopt.getopt(sys.argv[1:], "c:o:", ['checkDir=', 'outFile='])
81 
82  checkDir = '.'
83  outFile = None
84  for opt, arg in opts :
85 
86  if opt in ('-c', "--checkDir", ):
87  checkDir = arg
88 
89  if opt in ('-o', "--outFile", ):
90  outFile = arg
91 
92  ta = TreeAnalyzer(outFile)
93  ta.analyzePath(checkDir)
94  ta.show()
95 
96  except getopt.GetoptError as e:
97  print "unknown option", str(e)
98  sys.exit(2)
99 
#define str(s)