Skip to content
Snippets Groups Projects
Commit 947532fa authored by cmaffeo2's avatar cmaffeo2
Browse files

Fixed script handling of multiple suffixes

parent 71f1af2c
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ if __name__ == '__main__': ...@@ -30,7 +30,7 @@ if __name__ == '__main__':
infile = pathlib.Path(args.input_file) infile = pathlib.Path(args.input_file)
try: try:
prefix = infile.stem prefix = infile.stem
extension = ".".join(infile.suffixes) extension = infile.suffix
except: except:
raise Exception("Unrecognized input file '{}'".format(infile)) raise Exception("Unrecognized input file '{}'".format(infile))
......
...@@ -42,7 +42,7 @@ if __name__ == '__main__': ...@@ -42,7 +42,7 @@ if __name__ == '__main__':
infile = pathlib.Path(args.input_file) infile = pathlib.Path(args.input_file)
try: try:
prefix = infile.stem prefix = infile.stem
extension = ".".join(infile.suffixes) extension = infile.suffix
except: except:
raise Exception("Unrecognized input file '{}'".format(infile)) raise Exception("Unrecognized input file '{}'".format(infile))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment