Skip to content

Commit

Permalink
Ensure all Path filenames are converted to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rayosborn committed Nov 14, 2022
1 parent 939aedd commit a98ff5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nexusformat/nexus/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a98ff5e

Please sign in to comment.