How to embed?
Ignacio Vazquez-Abrams
ignacio at openservices.net
Sat Sep 8 16:25:12 EDT 2001
On Sat, 8 Sep 2001, vin wrote:
> Your function dumps the core at the line dict=PyModule_GetDict(module); .
It segfaults because it can't find the module. I tried changing it to:
PyRun_SimpleString("import exmpl");
and it raises an ImportError.
Can anyone explain why it won't find a .py file in the same directory when
it works fine when running the same code interactively?
> Besides PyDict_GetItemString needs 2 arguments.
My bad. You did however understand what I meant, right? ;)
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list