Yep, It should already be initialized by Maya on startup.
On Jun 17, 8:47 am, Hugo Parente Lima <hugo.l...@openbossa.org> wrote: > On Thursday 16 June 2011 17:31:13 kungfuelmosan wrote: > > > > > > > > > > > Hey Hugo, > > > Yep I'm calling : > > > if (!Shiboken::importModule("PySide.QtCore", > > &SbkPySide_QtCoreTypes)) { > > PyErr_SetString(PyExc_ImportError,"could not import > > PySide.QtCore"); > > return; > > } > > > if (!Shiboken::importModule("PySide.QtGui", > > &SbkPySide_QtGuiTypes)) { > > PyErr_SetString(PyExc_ImportError,"could not import > > PySide.QtGui"); > > return; > > } > > > In my extension modules init function and I have these globally > > defined in my .cc file aswell : > > > #include <pyside_qtgui_python.h> > > PyTypeObject** SbkPySide_QtCoreTypes; > > PyTypeObject** SbkPySide_QtGuiTypes; > > > Does that look right to you? > > Yes it does, nothing wrong. Did you call Py_Initialize() before all this? or > the python interpreter was already initialized by someone? > > Regards. > > signature.asc > < 1KViewDownload > > _______________________________________________ > PySide mailing list > PyS...@lists.pyside.orghttp://lists.pyside.org/listinfo/pyside _______________________________________________ PySide mailing list PySide@lists.pyside.org http://lists.pyside.org/listinfo/pyside