CORBA::String_var sior = _orb->object_to_string(pCont);
string myCommand="pyCont = SALOME_Container.SALOME_Container_i('";
+ myCommand += _containerName + "','";
myCommand += sior;
myCommand += "')\n";
SCRUTE(myCommand);
#include <mpi.h>
#endif
-#include <Python.h>
#include "Container_init_python.hxx"
using namespace std;
int _argc = 1;
char* _argv[] = {""};
KERNEL_PYTHON::init_python(_argc,_argv);
-
+
try{
// Obtain a reference to the root POA.
// obtain the root poa manager
#-------------------------------------------------------------------------
- def __init__(self, containerIORStr ):
+ def __init__(self ,containerName, containerIORStr):
MESSAGE( "SALOME_Container_i::__init__" )
self._orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
self._poa = self._orb.resolve_initial_references("RootPOA")
- self._containerName = sys.argv[1]
+ self._containerName = containerName
#self._naming_service = SALOME_NamingServicePy_i(self._orb)
self._container = self._orb.string_to_object(containerIORStr)