From a98ff5ed6d073c9f2102f603cd36c1afff05caec Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Mon, 14 Nov 2022 14:40:01 -0600 Subject: [PATCH] Ensure all Path filenames are converted to strings --- src/nexusformat/nexus/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nexusformat/nexus/tree.py b/src/nexusformat/nexus/tree.py index 273e816..5f7f898 100644 --- a/src/nexusformat/nexus/tree.py +++ b/src/nexusformat/nexus/tree.py @@ -2402,7 +2402,7 @@ def nxfilename(self): """ if self._filename is not None: if Path(self._filename).is_absolute(): - return self._filename + return str(self._filename) elif (self._group is not None and self._group.nxfilename is not None): return str(Path(self._group.nxfilename).parent.joinpath(