Gabriel Genellina wrote:
>En Sat, 10 Feb 2007 03:57:05 -0300, Jim Hill <[EMAIL PROTECTED]> escribió:
>
>> int routine() {
>> Py_Initialize();
>> ...
>> }
>
>(Why routine() and not main()? Unfortunately you can't repeteadly
>initialize/finalize the interpreter, you must do that only once.)
En Sat, 10 Feb 2007 03:57:05 -0300, Jim Hill <[EMAIL PROTECTED]> escribió:
> I want to do a simple embed, so I've followed the example in the
> Extending and Embedding documentation:
>
> In the .c file,
>
> #include
>
> int routine() {
> Py_Initialize();
> PyRun_SimpleString("from time import
Jim Hill (that'd be me) wrote:
I forgot one more key thing: the compiled code is being run via mpirun
(LAM/MPI). Might that have something to do with my pain and heartache?
Jim
(original post reproduced below in shocking breach of etiquette on the
off chance someone's interested in this post a
Well, I've found about a hundred thousand web pages where people have
had the same problem I have but nary a page with a solution that works
for me.
I want to do a simple embed, so I've followed the example in the
Extending and Embedding documentation:
In the .c file,
#include
int routine() {