From 572b128ff3f424a88457b920cfc54f9f0ec948e3 Mon Sep 17 00:00:00 2001 From: mbouyges Date: Thu, 3 Oct 2024 16:58:00 +0200 Subject: [PATCH] fix absolute path in pvtu --- src/gridtypes/pvtk_grid.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gridtypes/pvtk_grid.jl b/src/gridtypes/pvtk_grid.jl index 290eb03..945ee73 100644 --- a/src/gridtypes/pvtk_grid.jl +++ b/src/gridtypes/pvtk_grid.jl @@ -207,14 +207,13 @@ end # Here `path` is the basename of the main pvtk file (without the extension). # Note that it can be in a subdirectory of `.`, and it can either be an absolute or relative # path. -# If it is an absolute value, then always return an absolute value. function _pvtk_vtk_filename_prefix(path; relative_to_pvtk, create_dirs = false) dir_serial = path # directory where serial files will be written if create_dirs mkpath(dir_serial) end bname = basename(path) - if isabspath(path) || !relative_to_pvtk + if !relative_to_pvtk joinpath(dir_serial, bname) else _, reldir = splitdir(dir_serial)