From: Anthony Geay Date: Tue, 25 Jun 2024 15:36:23 +0000 (+0200) Subject: [EDF30157] : Fix bug introduced 2a5876c6 X-Git-Tag: V9_13_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=417c1bc4f0aeefaa0fc83cc871f8c9c8aea23c7c;p=modules%2Fkernel.git [EDF30157] : Fix bug introduced 2a5876c6 --- diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index d5f10aa9d..83fc0a362 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -258,10 +258,11 @@ def IncrRefInFile(fname): :param fname: :type fname: str """ - if fname in DicoForProxyFile: - DicoForProxyFile[fname] += 1 + fnameEff = fname.getFileName() + if fnameEff in DicoForProxyFile: + DicoForProxyFile[fnameEff] += 1 else: - DicoForProxyFile[fname] = 2 + DicoForProxyFile[fnameEff] = 2 pass def DecrRefInFile(fname): @@ -269,7 +270,7 @@ def DecrRefInFile(fname): :param fname: :type fname: BigFileOnDiskBase """ - if fname not in DicoForProxyFile: + if fname.getFileName() not in DicoForProxyFile: cnt = 1 else: cnt = DicoForProxyFile[fname.getFileName()]