if options.report: if "RELMON_SA" in os.environ: from directories2html import directory2html from dirstructure import Directory else: from Utilities.RelMon.directories2html import directory2html from Utilities.RelMon.dirstructure import Directory pickle_name=options.pklfile if len(options.pklfile)==0: pickle_name=original_pickle_name print("Reading directory from %s" %(pickle_name)) ifile=open(pickle_name,"rb") directory=cPickle.load(ifile) ifile.close() if os.path.exists(options.outdir_name) and len(directory.name)==0: os.chdir(options.outdir_name) # Calculate the results of the tests for each directory print("Calculating stats for the directory...") directory.calcStats() print("Producing html...") directory2html(directory) if not (options.report or options.compare): print("Neither comparison nor report to be executed. A typo?")
from os.path import exists from os import chdir, mkdir import os import cPickle pickle_name = options.pklfile if len(options.pklfile) == 0: pickle_name = original_pickle_name print "Reading directory from %s" % (pickle_name) ifile = open(pickle_name, "rb") directory = cPickle.load(ifile) ifile.close() if not options.compare: if not os.path.exists(options.outdir_name): mkdir(options.outdir_name) if exists(options.outdir_name) and len(directory.name) == 0: chdir(options.outdir_name) # Calculate the results of the tests for each directory print "Calculating stats for the directory..." directory.calcStats() print "Producing html..." directory2html(directory) if not (options.report or options.compare): print "Neither comparison nor report to be executed. A typo?"
import os import cPickle pickle_name=options.pklfile if len(options.pklfile)==0: pickle_name=original_pickle_name print "Reading directory from %s" %(pickle_name) ifile=open(pickle_name,"rb") directory=cPickle.load(ifile) ifile.close() if not options.compare: if not os.path.exists(options.outdir_name): mkdir(options.outdir_name) if exists(options.outdir_name) and len(directory.name)==0: chdir(options.outdir_name) # Calculate the results of the tests for each directory print "Calculating stats for the directory..." directory.calcStats() print "Producing html..." directory2html(directory, options.hash_name, options.standalone) if not (options.report or options.compare): print "Neither comparison nor report to be executed. A typo?"
from os.path import exists from os import chdir, mkdir import os import cPickle pickle_name = options.pklfile if len(options.pklfile) == 0: pickle_name = original_pickle_name print "Reading directory from %s" % (pickle_name) ifile = open(pickle_name, "rb") directory = cPickle.load(ifile) ifile.close() if not options.compare: if not os.path.exists(options.outdir_name): mkdir(options.outdir_name) if exists(options.outdir_name) and len(directory.name) == 0: chdir(options.outdir_name) # Calculate the results of the tests for each directory print "Calculating stats for the directory..." directory.calcStats() print "Producing html..." directory2html(directory, options.hash_name) if not (options.report or options.compare): print "Neither comparison nor report to be executed. A typo?"
import os import pickle pickle_name=options.pklfile if len(options.pklfile)==0: pickle_name=original_pickle_name print("Reading directory from %s" %(pickle_name)) ifile=open(pickle_name,"rb") directory=pickle.load(ifile) ifile.close() if not options.compare: if not os.path.exists(options.outdir_name): mkdir(options.outdir_name) if exists(options.outdir_name) and len(directory.name)==0: chdir(options.outdir_name) # Calculate the results of the tests for each directory print("Calculating stats for the directory...") directory.calcStats() print("Producing html...") directory2html(directory, options.hash_name, options.standalone) if not (options.report or options.compare): print("Neither comparison nor report to be executed. A typo?")
import os import cPickle pickle_name=options.pklfile if len(options.pklfile)==0: pickle_name=original_pickle_name print "Reading directory from %s" %(pickle_name) ifile=open(pickle_name,"rb") directory=cPickle.load(ifile) ifile.close() if not options.compare: if not os.path.exists(options.outdir_name): mkdir(options.outdir_name) if exists(options.outdir_name) and len(directory.name)==0: chdir(options.outdir_name) # Calculate the results of the tests for each directory print "Calculating stats for the directory..." directory.calcStats() print "Producing html..." directory2html(directory, options.hash_name) if not (options.report or options.compare): print "Neither comparison nor report to be executed. A typo?"