From 4552b5b1ab28dc0051e53b8987377cc8dc6a5384 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sun, 7 Jun 2015 10:09:31 +0700 Subject: [PATCH] Use endswith rather than os.path.splitext --- scripts/openmc-track-to-vtk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openmc-track-to-vtk b/scripts/openmc-track-to-vtk index 6a153240d0..9e5425c556 100755 --- a/scripts/openmc-track-to-vtk +++ b/scripts/openmc-track-to-vtk @@ -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