From 417c1bc4f0aeefaa0fc83cc871f8c9c8aea23c7c Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 25 Jun 2024 17:36:23 +0200 Subject: [PATCH] [EDF30157] : Fix bug introduced 2a5876c6 --- src/Container/SALOME_PyNode.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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()] -- 2.39.2