diff --git a/py-scripts/sandbox/lf_check.py b/py-scripts/sandbox/lf_check.py index b0ac8233..2af7bf49 100755 --- a/py-scripts/sandbox/lf_check.py +++ b/py-scripts/sandbox/lf_check.py @@ -30,6 +30,9 @@ import configparser from pprint import * import subprocess import sys +#from ..lf_report import lf_report +sys.path.append('../') +from lf_report import lf_report CONFIG_FILE = os.getcwd() + '/lf_check_config.ini' @@ -49,7 +52,8 @@ class FileAdapter(object): class lf_check(): - def __init__(self): + def __init__(self, + _csv_outfile): self.lf_mgr_ip = "" self.lf_mgr_port = "" self.radio_dict = {} @@ -58,6 +62,7 @@ class lf_check(): os.chdir(path_parent) self.scripts_wd = os.getcwd() self.results = "" + self.csv_outfile = _csv_outfile # Functions in this section are/can be overridden by descendants @@ -176,7 +181,40 @@ class lf_check(): # print("exception on command: {}".format(command)) def main(): - check = lf_check() + # arguments + parser = argparse.ArgumentParser( + prog='lf_check.py', + formatter_class=argparse.RawTextHelpFormatter, + epilog='''\ + lf_check.py : for running scripts listed in lf_check_config.ini file + ''', + description='''\ +lf_check.py +----------- + +Summary : +--------- +for running scripts listed in lf_check_config.ini + ''') + + parser.add_argument('--csv_outfile', help="--csv_outfile