From: Anthony Geay Date: Fri, 19 Apr 2024 14:15:32 +0000 (+0200) Subject: [EDF29138] : Ease usage of replay mode X-Git-Tag: emc2p_2.0.0-rc2^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0048ef1867f5a6abbb604365c00c41f247668859;p=modules%2Fkernel.git [EDF29138] : Ease usage of replay mode --- diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index 06c958fb3..ed19bb306 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -728,6 +728,7 @@ outputsKeys = {} exec( "{{}} = LogOfCurrentExecutionSession( orb.string_to_object( \\"{}\\" ) )".format(MY_PERFORMANCE_LOG_ENTRY_IN_GLBS) ) with open(inputFileName,"rb") as f: context = pickle.load( f ) +context[MY_PERFORMANCE_LOG_ENTRY_IN_GLBS] = eval( MY_PERFORMANCE_LOG_ENTRY_IN_GLBS ) with open(codeFileName,"r") as f: code = f.read() # go for execution @@ -873,7 +874,7 @@ def ExecLocal( code, context, outargsname, containerRef, instanceOfLogOfCurrentS exec( code, context ) return instanceOfLogOfCurrentSession._current_instance -class LogOfCurrentExecutionSessionAbs(Generic,abc.ABC): +class LogOfCurrentExecutionSessionAbs(abc.ABC): def __init__(self): self._current_instance = ScriptExecInfo() @@ -881,7 +882,7 @@ class LogOfCurrentExecutionSessionAbs(Generic,abc.ABC): setattr(self._current_instance,key,value) @abc.abstractmethod - def addFreestyleAndFlush(self, outargsname): + def addFreestyleAndFlush(self, value): raise RuntimeError("Must be overloaded") class LogOfCurrentExecutionSession(LogOfCurrentExecutionSessionAbs): @@ -902,7 +903,7 @@ class LogOfCurrentExecutionSessionStub(LogOfCurrentExecutionSessionAbs): """ def __init__(self, handleToCentralizedInst = None): super().__init__() - def addFreestyleAndFlush(self): + def addFreestyleAndFlush(self, value): pass class PyScriptNode_Abstract_i(Engines__POA.PyScriptNode,Generic,abc.ABC):