From: Anthony Geay Date: Tue, 18 Jun 2024 14:37:26 +0000 (+0200) Subject: [EDF30157] Help to test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f30043b4f871822fc5918cd39afe0c62a256b9b8;p=modules%2Fkernel.git [EDF30157] Help to test --- diff --git a/src/Launcher_SWIG/Launcher.i b/src/Launcher_SWIG/Launcher.i index fd5bd34d0..e472ede51 100644 --- a/src/Launcher_SWIG/Launcher.i +++ b/src/Launcher_SWIG/Launcher.i @@ -382,13 +382,13 @@ def GetPlayGroundInsideASlurmJob(): d[elt]+=1 return d -def BuildCatalogFromScratch(protocol): +def BuildCatalogFromScratch(protocol,appliPath): import os d = GetPlayGroundInsideASlurmJob() rmcpp = RetrieveRMCppSingleton() rmcpp.DeleteAllResourcesInCatalog() for k,v in d.items(): - contRes = CreateContainerResource(hostname=k,applipath=os.environ["APPLI"],protocol=protocol,nbOfNodes=v) + contRes = CreateContainerResource(hostname=k,applipath=appliPath,protocol=protocol,nbOfNodes=v) rmcpp.AddResourceInCatalogNoQuestion(contRes) def GetRequestForGiveContainer(hostname, contName):