I'm trying to embed Python, which is working nicely, however I also want
to access objects from my SIP wrapped library from Python. I tried the
following code:

  int main() {
    Py_Initialize();
    initlibsip();
    initlibNrxDataTypesc();

    NDate val(2002, 5, 28);
    PyObject* val = sipMapCppToSelf(&val, sipClass_NDate);
    ...

but sipClass_NDate is NULL. I'm guessing I'm forgetting to call an
initialization function, but I can't figure out which...

-- bjorn

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde

Reply via email to