PythonC interpreter instances

Aaron Drew nospam at nospam.com
Sun Apr 22 08:10:40 EDT 2001


When I call PyRun_SimpleString() after importing a module with
PyModule_ImportModule(), the imported module is not visible to my code. If I
pass the line 'import <module>' as part of my command to
PyRun_SimpleString(), it all works fine.

Does the SimpleString() command run things in a seperate environment to that
in which PyModule_ImportModule() operates or am I doing something wrong?

- Aaron





More information about the Python-list mailing list