embedding python - PyImport_ImportModule returns null

"Martin v. Löwis" martin at v.loewis.de
Thu Mar 6 01:13:00 EST 2003


JW wrote:
> 	pModule=PyImport_ImportModule("func");  //fileread.py

Why do you try to load func, when the module is called fileread.py?

> 		PyErr_Print();
> 		fprintf(stderr,"Failed to load \"%s\"\n","func");
[...]
> What am i doing wrong?

You are not telling us what the Python exception was that you got.

Regards,
Martin






More information about the Python-list mailing list