Re: Executing script with embedded python

2006-01-26 Thread Andrew Ayre
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

Re: Executing script with embedded python

2006-01-26 Thread Andrew Ayre
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

Re: Executing script with embedded python

2006-01-26 Thread Andrew Ayre
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

Executing script with embedded python

2006-01-25 Thread Andrew Ayre
Hi, I have a script that I want to execute from C. I don't want to call any functions, just execute the script. Below is a code snippet. 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

Re: Executing script with embedded python

2006-01-25 Thread Farshid Lashkari
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