Remove adding .json, .csv, & .txt file extensions
Change-Id: I35172115932a1363c23aedf877151e87b669bca4 Signed-off-by: Maisam Arif <maisarif@amd.com>
This commit is contained in:
zatwierdzone przez
Galantsev, Dmitrii
rodzic
9c314dfd5c
commit
b90dff83ea
@@ -125,14 +125,6 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
path.touch()
|
||||
setattr(args, self.dest, path)
|
||||
elif path.is_file():
|
||||
file_name = str(path)
|
||||
if args.json and str(path).split('.')[-1].lower() != 'json':
|
||||
file_name += ".json"
|
||||
elif args.csv and str(path).split('.')[-1].lower() != 'csv':
|
||||
file_name += ".csv"
|
||||
elif str(path).split('.')[-1].lower() != 'txt':
|
||||
file_name += ".txt"
|
||||
path = Path(file_name)
|
||||
path.touch()
|
||||
setattr(args, self.dest, path)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user