From: Ovidiu Mircescu Date: Fri, 29 Mar 2024 14:13:10 +0000 (+0100) Subject: Fix driver when there are no tasks to launch. X-Git-Tag: emc2p_2.0.0-rc1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fyacs.git;a=commitdiff_plain;h=96ab5041cb9582fd44428e04c7c5c05a3c503a61 Fix driver when there are no tasks to launch. --- diff --git a/src/yacsloader/driver_internal.py b/src/yacsloader/driver_internal.py index 471856b2f..6ca24651c 100644 --- a/src/yacsloader/driver_internal.py +++ b/src/yacsloader/driver_internal.py @@ -394,6 +394,9 @@ def mainRun( args, xmlFileName): logging.info( reprAfterArgParsing(args) ) # proc = loadGraph( xmlFileName ) + # work around a bug in Executor::Run when there are no tasks to launch. + if len(proc.getChildren()) == 0 : + return patchGraph( proc, not args[DoNotSqueezeKeyInARGS], args[InitPortKeyInARGS], args[SaveXMLSchemaKeyInARGS], args[LoadStateKeyInARGS], args[ResetKeyInARGS], args[DisplayKeyInARGS]) executor = prepareExecution( proc, args[StopOnErrorKeyInARGS], args[DumpOnErrorKeyInARGS]) #