Executing script with embedded python
andy at nospam.com
Thu Jan 26 16:49:59 CET 2006
"Farshid Lashkari" <flashkNO at SPAMgmail.com> wrote in message
news:cE_Bf.11329$ZA5.11001 at fed1read05...
> > The problem is that PyObject_CallObject always returns NULL. Is this the
> > correct return value for simply executing a script, as there is no
> > return value involved?
> The documentation for PyObject_CallObject states the following:
> "Returns the result of the call on success, or NULL on failure".
> So it seems like the call is failing. My guess would be that modules are
> not callable objects. Also, this seems somewhat redundant since your
> module is effectively executed when you import it using the
> PyImport_Import function.
Thanks for the reply. The script does execute and do what I want it to do,
without any problems. The only problem is that I get the NULL result. So I
think it is callable.
More information about the Python-list