Getting output from embedded python program

Jeff Epler jepler at unpythonic.net
Tue Apr 20 14:50:59 EDT 2004


PyRun_File expects dicts for both the third and fourth parameters.
The code you wrote appears to use one module object and one dict object,
but in the (incomplete, non-runnable) code you included, you didn't even
initialize evalModule/evalDict until after the PyRun_File call, nor did
you check for failures along the way.

Jeff




More information about the Python-list mailing list