From 2fb2d83d954ca6254ba0e870bb96c2fe09fb0d2e Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 23 Feb 2022 10:35:22 -0700 Subject: [PATCH] lf_tx_power.py : fix on output naming so the script results show up together. Signed-off-by: Chuck SmileyRekiere --- lf_tx_power.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lf_tx_power.py b/lf_tx_power.py index c817614d..77f5512b 100755 --- a/lf_tx_power.py +++ b/lf_tx_power.py @@ -337,9 +337,9 @@ def main(): if (args.lfresource2 is not None): lfresource2 = args.lfresource2 if (args.outfile): - outfile = args.outfile + outfile_tmp = args.outfile else: - outfile = 'tx_power' + outfile_tmp = 'tx_power' print("outfile {}".format(outfile)) @@ -361,9 +361,9 @@ def main(): # note: there would always be an args.outfile due to the default current_time = time.strftime("%m_%d_%Y_%H_%M_%S", time.localtime()) - outfile = "{}_{}.txt".format(outfile, current_time) - full_outfile = "{}_full_{}.txt".format(outfile, current_time) - outfile_xlsx = "{}_{}.xlsx".format(outfile, current_time) + full_outfile = "{}_full_{}.txt".format(outfile_tmp, current_time) + outfile_xlsx = "{}_{}.xlsx".format(outfile_tmp, current_time) + outfile = "{}_{}.txt".format(outfile_tmp, current_time) print("output file: {}".format(outfile)) print("output file full: {}".format(full_outfile)) print("output file xlsx: {}".format(outfile_xlsx))