if __name__ == "__main__": #searchFiles() #TO DO: #Use option parser! This is messy. (release, output_dir) = get_params(sys.argv) if not release: """ print usage(sys.argv) sys.exit(2) """ print "The version was not provided explicitly, will try to get one from SimulationCandles file """ # Export the metadata from cmsPerfSuite.log (in current working directory!) print "Parsing cmsPerfSuite.log: getting all the metadata concerning the run" p = parserPerfsuiteMetadata(os.getcwd()) run_info = p.parseAll() print "Loading Sequences and Event-Content(s). Please wait..." Sequences_OK = False EventContents_OK = False if not _TEST_RUN: try: import Validation.Performance.ModuleToSequenceAssign as ModuleToSequenceAssign Sequences_OK = True except Exception, e: print e try: import Validation.Performance.parseEventContent as parseEventContent
if __name__ == "__main__": #searchFiles() #TO DO: #Use option parser! This is messy. (release, output_dir) = get_params(sys.argv) if not release: """ print usage(sys.argv) sys.exit(2) """ print("The version was not provided explicitly, will try to get one from SimulationCandles file """) # Export the metadata from cmsPerfSuite.log (in current working directory!) print("Parsing cmsPerfSuite.log: getting all the metadata concerning the run") p = parserPerfsuiteMetadata(os.getcwd()) run_info = p.parseAll() print("Loading Sequences and Event-Content(s). Please wait...") Sequences_OK = False EventContents_OK = False if not _TEST_RUN: try: import Validation.Performance.ModuleToSequenceAssign as ModuleToSequenceAssign Sequences_OK = True except Exception as e: print(e) try: import Validation.Performance.parseEventContent as parseEventContent