]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[PY3] Swig Python3
authorNicolas Geimer <nicolas.geimer@edf.fr>
Tue, 14 Mar 2017 14:25:21 +0000 (15:25 +0100)
committerNicolas Geimer <nicolas.geimer@edf.fr>
Tue, 14 Mar 2017 14:25:21 +0000 (15:25 +0100)
src/LifeCycleCORBA_SWIG/CMakeLists.txt
src/LifeCycleCORBA_SWIG/libSALOME_LifeCycleCORBA.i

index 38e526dface6962954e8d4dbef3f4b13cc6a7fef..6e8dbc3c26f45934b86ae756bd2f13078c0c4bb0 100755 (executable)
@@ -20,6 +20,7 @@
 INCLUDE(${SWIG_USE_FILE})
 
 SET_SOURCE_FILES_PROPERTIES(libSALOME_LifeCycleCORBA.i PROPERTIES CPLUSPLUS ON)
+SET_SOURCE_FILES_PROPERTIES(libSALOME_LifeCycleCORBA.i PROPERTIES SWIG_FLAGS "-py3")
 SET_SOURCE_FILES_PROPERTIES(libSALOME_LifeCycleCORBA.i PROPERTIES SWIG_DEFINITIONS "-shadow")
 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
 
index ecfef6ab9b6739583c501e21a57ca58473ddb167..cfebfc51b94ebb883b1b9b97bf481fedc9a31e54 100644 (file)
@@ -84,7 +84,7 @@ omniORBpyAPI* api;
     return NULL;
   }
   PyObject* pyapi = PyObject_GetAttrString(omnipy, (char*)"API");
-  api = (omniORBpyAPI*)PyCapsule_New(pyapi,NULL,NULL);
+  api = (omniORBpyAPI*)PyCapsule_GetPointer(pyapi,"_omnipy.API");
   Py_DECREF(pyapi);
 %}