X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fruntime%2FDistributedPythonNode.cxx;h=626e2126e4e38fee71887be698af757c5b780abd;hb=3bd065d98e6be54641662dae58e489e7b97b5400;hp=c1940e1dc47ce5d934259275fe9aafbfea5cc70c;hpb=9c7a4a63121fcdcb19eaae1ecb4368a4a0110a0d;p=modules%2Fyacs.git diff --git a/src/runtime/DistributedPythonNode.cxx b/src/runtime/DistributedPythonNode.cxx index c1940e1dc..626e2126e 100644 --- a/src/runtime/DistributedPythonNode.cxx +++ b/src/runtime/DistributedPythonNode.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2016 CEA/DEN, EDF R&D +// Copyright (C) 2006-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -23,7 +23,7 @@ #include "PythonNode.hxx" #include "SalomeHPContainer.hxx" #include "SalomeContainerTmpForHP.hxx" -#include "AutoGIL.hxx" +#include "PythonCppUtils.hxx" #include "PythonPorts.hxx" #include "YacsTrace.hxx" @@ -113,12 +113,13 @@ void DistributedPythonNode::load() if(!_container) throw Exception("No container specified !"); SalomeContainer *containerCast0(dynamic_cast(_container)); - SalomeHPContainerBase *containerCast1(dynamic_cast(_container)); + SalomeHPContainer *containerCast1(dynamic_cast(_container)); if(containerCast0) objContainer=containerCast0->getContainerPtr(this); else if(containerCast1) { - objContainer=containerCast1->getContainerPtr(this); + YACS::BASES::AutoCppPtr tmpCont(SalomeContainerTmpForHP::BuildFrom(containerCast1,this)); + objContainer=tmpCont->getContainerPtr(this); } else throw Exception("Unrecognized type of container ! Salome one is expected !");