Skip to content

Commit a43cb28

Browse files
committed
Prevent use of the nxlink attribute when returning the target path
1 parent 66a36cb commit a43cb28

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/nexusformat/nexus/tree.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,10 +2534,7 @@ def nxfilepath(self):
25342534
if self.nxclass == 'NXroot':
25352535
return "/"
25362536
elif self.nxtarget:
2537-
if self.is_external():
2538-
return self.nxtarget
2539-
else:
2540-
return self.nxlink.nxfilepath
2537+
return self.nxtarget
25412538
elif self.nxgroup is None:
25422539
return ""
25432540
elif isinstance(self.nxgroup, NXroot):

0 commit comments

Comments
 (0)