]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[EDF30157] : Fix bug introduced 2a5876c6
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 25 Jun 2024 15:36:23 +0000 (17:36 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 25 Jun 2024 15:36:23 +0000 (17:36 +0200)
src/Container/SALOME_PyNode.py

index d5f10aa9d8d048a173e356a2b34d56206ddb2779..83fc0a36222ee0e0aacf0c7b4260882919d7e566 100644 (file)
@@ -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()]