mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Use endswith rather than os.path.splitext
This commit is contained in:
parent
6a862d82af
commit
4552b5b1ab
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def main():
|
|||
# Make sure that the output filename ends with '.pvtp'.
|
||||
if not args.out:
|
||||
args.out = 'tracks.pvtp'
|
||||
elif os.path.splitext(args.out)[1] != '.pvtp':
|
||||
elif not args.out.endswith('.pvtp'):
|
||||
args.out += '.pvtp'
|
||||
|
||||
# Import HDF library if HDF files are present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue