From 4ce21766df55a9902154cbdf3c124726856ae949 Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Thu, 30 Apr 2026 14:27:26 -0500 Subject: [PATCH] Stop converting the NXlink filename to an absolute path when copying This causes problems when the path is designed to be relative. --- src/nexusformat/nexus/tree.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/nexusformat/nexus/tree.py b/src/nexusformat/nexus/tree.py index c0a01b32..35a53b1a 100644 --- a/src/nexusformat/nexus/tree.py +++ b/src/nexusformat/nexus/tree.py @@ -6017,10 +6017,7 @@ def __deepcopy__(self, memo={}): memo[id(self)] = dpcpy dpcpy._name = copy(self.nxname) dpcpy._target = copy(obj._target) - if obj._filename: - dpcpy._filename = copy(obj.nxfilename) - else: - dpcpy._filename = None + dpcpy._filename = copy(obj._filename) dpcpy._abspath = copy(obj._abspath) dpcpy._soft = copy(obj._soft) dpcpy._link = None