CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
storeTreeInfo Namespace Reference

Classes

class  TreeAnalyzer
 

Functions

def main
 

Function Documentation

def storeTreeInfo.main ( )

Definition at line 75 of file storeTreeInfo.py.

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