mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
lf_tx_power.py : fix on output naming so the script results show up together.
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
aefd216609
commit
2fb2d83d95
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user