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