"Farshid Lashkari" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > The problem is that PyObject_CallObject always returns NULL. Is this the > > correct return value for simply executing a script, as there is no function > > 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. > > -Farshid >
Yes, you were 100% correct. Thanks! Andy -- http://mail.python.org/mailman/listinfo/python-list