]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
PAL10310: Incomplete import of python CORBA modules. Ensure patch working in Supervisor
authorjfa <jfa@opencascade.com>
Wed, 16 Nov 2005 14:43:06 +0000 (14:43 +0000)
committerjfa <jfa@opencascade.com>
Wed, 16 Nov 2005 14:43:06 +0000 (14:43 +0000)
src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx

index 7f55f98586652b9717725188e3f825fb1ea4e90c..43813d588ef4bf36d821e3ad3c036d3cfa0222f0 100644 (file)
@@ -38,6 +38,15 @@ bool GraphExecutor::InNode::InitPython() {
     Py_InitModule( "InitPyRunMethod" , MethodPyRunMethod ) ;
     // asv : 20.01.05 : changes involved with switching to old (HEAD) KERNEL    
     //_OutNode->SuperVisionContainer()->ActivatePythonExecution( "InitPyRunMethod" , MethodPyRunMethod ) ;
+
+    // PAL10310: patch on omniORB
+    string aPyFunc;
+    aPyFunc = "import omnipatch\n" ;
+    if ( PyRun_SimpleString( (char *) aPyFunc.c_str() ) ) {
+      cdebug << ThreadNo() << " " << Name() << " PyRun_SimpleString ERROR " << endl << aPyFunc << endl ;
+      Automaton()->PyUnLock() ;
+      return false ;
+    }
   }
 //  PyObject * Dictionnary = PyModule_GetDict( Module ) ;
 //  InitPyDynInvokeError = PyErr_NewException( "InitPyDynInvokeError" , NULL , NULL ) ;