Skip to content

Commit

Permalink
Merge pull request #183 from rayosborn/fix-filename
Browse files Browse the repository at this point in the history
Ensure all Path filenames are converted to strings
  • Loading branch information
rayosborn authored Nov 14, 2022
2 parents 939aedd + a98ff5e commit e750963
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 e750963

Please sign in to comment.