From: Ovidiu Mircescu Date: Thu, 23 Nov 2017 16:44:51 +0000 (+0100) Subject: Use a new container instead of the default one in py2yacs. X-Git-Tag: V9_0_0~2^2^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a7077d5350ef548039efec4c257db5798347874e;p=modules%2Fyacs.git Use a new container instead of the default one in py2yacs. --- diff --git a/src/py2yacs/py2yacs.cxx b/src/py2yacs/py2yacs.cxx index 5ee96e586..a3ca4f0e3 100644 --- a/src/py2yacs/py2yacs.cxx +++ b/src/py2yacs/py2yacs.cxx @@ -24,6 +24,7 @@ #include "InlineNode.hxx" #include "AutoGIL.hxx" #include "InputPort.hxx" +#include "Container.hxx" Py2yacsException::Py2yacsException(const std::string& what) : std::exception(), @@ -380,7 +381,9 @@ YACS::ENGINE::Proc* Py2yacs::createProc(const std::string& python_function)const node->edAddOutputPort(*it, tc_double); node->setExecutionMode(YACS::ENGINE::InlineNode::REMOTE_STR); - node->setContainer(schema->containerMap["DefaultContainer"]); + YACS::ENGINE::Container* cont=schema->createContainer("Py2YacsContainer"); + node->setContainer(cont); + cont->decrRef(); return schema; }