Python 2.0 / Python 2.2

Discussion in 'Python' started by Gina Schuffenhauer, Jul 1, 2003.

  1. Hallo newsgroup,

    I have some questions concerning Python 2.2.

    First question:
    I try to port source code from Python 2.0 to Python 2.2.The following source
    code works with Python 2.0. If I compile it with Python 2.2, the modul "tci"
    is not imported. "tci" is a python module written by us. How can I change
    the source code to get it working with Python 2.2.?

    Py_Initialize();

    PyStr = Py_BuildValue("s", TCIHome);

    PyModule = PyImport_ImportModule("sys");
    PyList = PyObject_GetAttrString(PyModule, "path");
    PyList_Insert(PyList, 0, PyStr);
    if (PyErr_Occurred())
    return 0;

    TCIModule = PyImport_ImportModule("tci");

    Second question:

    I want to embed Pythonwin in a C++-Application. Where can I find a
    win32uiHostGlue.h to access win32ui.pyd version 2.1.0.152?


    --
    Mit freundlichen Grüßen / best regards
    Gina Schuffenhauer

     
    Gina Schuffenhauer, Jul 1, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cameron Laird
    Replies:
    3
    Views:
    872
    Dennis Lee Bieber
    Jun 28, 2003
  2. Irmen de Jong
    Replies:
    0
    Views:
    478
    Irmen de Jong
    Jun 30, 2003
  3. hab
    Replies:
    2
    Views:
    677
    Donn Cave
    Jul 7, 2003
  4. Irmen de Jong
    Replies:
    0
    Views:
    529
    Irmen de Jong
    Jul 7, 2003
  5. Replies:
    0
    Views:
    460
  6. JW
    Replies:
    1
    Views:
    760
    David Jeske
    Jul 12, 2003
  7. Paul Miller
    Replies:
    10
    Views:
    1,219
    Jeff Epler
    Jul 16, 2003
  8. Replies:
    0
    Views:
    941
Loading...