From a7077d5350ef548039efec4c257db5798347874e Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Thu, 23 Nov 2017 17:44:51 +0100 Subject: [PATCH] Use a new container instead of the default one in py2yacs. --- src/py2yacs/py2yacs.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2