]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[EDF29150] : WIP
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 11 Jan 2024 11:59:12 +0000 (12:59 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 11 Jan 2024 11:59:12 +0000 (12:59 +0100)
src/Container/SALOME_PyNode.py
src/KERNEL_PY/__init__.py

index ab91c1bfa98ec685b2beea80c3531632651dfe36..eea690050b5de7461d8723e2c0e0388596285954 100644 (file)
@@ -168,15 +168,17 @@ def DumpInFile(obj,fname):
     f.write( obj )
 
 def IncrRefInFile(fname):
-  with open(fname,"rb") as f:
+  pass
+  """with open(fname,"rb") as f:
     cntb = f.read( GetSizeOfTCnt() )
   cnt = TypeCounter.from_buffer_copy( cntb ).value
   with open(fname,"rb+") as f:
     #import KernelServices ; KernelServices.EntryForDebuggerBreakPoint()
-    f.write( bytes( TypeCounter(cnt+1) ) )
+    f.write( bytes( TypeCounter(cnt+1) ) )"""
 
 def DecrRefInFile(fname):
-  import os
+  pass
+  """import os
   with open(fname,"rb") as f:
     cntb = f.read( GetSizeOfTCnt() )
   cnt = TypeCounter.from_buffer_copy( cntb ).value
@@ -186,7 +188,7 @@ def DecrRefInFile(fname):
     os.unlink( fname )
   else:
     with open(fname,"rb+") as f:
-        f.write( bytes( TypeCounter(cnt-1) ) )
+        f.write( bytes( TypeCounter(cnt-1) ) )"""
 
 def GetBigObjectOnDiskThreshold():
   import os
index 81f53a391a6289c0be1e2c13ef472325015082a1..025878f4504987c223f86e8958b141d5709b6abc 100644 (file)
@@ -553,7 +553,6 @@ def LogManagerLoadFromIORFile( iorFile ):
     global orb
     def LoadAndWrite(logm,tempFileName):
         import SALOME_PyNode
-        print( tempFileName )
         logm.putStructInFileAtomic( False, tempFileName )
         tempFileAuto = SALOME_PyNode.FileDeleter( tempFileName )
         ret = LogManagerLoadFromFile( tempFileAuto.filename )