PyImport_ImportModule

Charlie Barrows charlie at gabrielinteractive.com
Fri Mar 16 16:48:19 CET 2001


I'm just starting to tinker with embedding Python in a C app and I'm trying
to get a handle on where modules end up when they're imported.

If I run this code:

PyObject *module = PyImport_ImportModule("TestScript");

... which namespace is TestScript imported into?

And can someone give me some hints as to some possible parameters for
PyImport_ImportModuleEx.  Specifically, what should the globals and locals
be?


Charlie Barrows
Gabriel Interactive





More information about the Python-list mailing list