From: Cédric Aguerre Date: Tue, 3 Oct 2023 13:14:01 +0000 (+0200) Subject: [EDF28694] Quick fix for BIGOBJ files management X-Git-Tag: emc2p_1.4.0-rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1348b48a64f38abc97626b4bd1ced4b18f5515f1;p=modules%2Fkernel.git [EDF28694] Quick fix for BIGOBJ files management --- diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index 1bb41877d..11dac9676 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -151,6 +151,8 @@ def IncrRefInFile(fname): def DecrRefInFile(fname): import os + if not os.path.isfile(fname): + return with open(fname,"rb") as f: cntb = f.read( GetSizeOfTCnt() ) cnt = TypeCounter.from_buffer_copy( cntb ).value