Sorry, forgot a line when I typed it in. I've added it below: Scott Wolford wrote: > Here's the smallest case that gives me problems: > #include "Python.h" > #include <stdio.h> > int main(int argc, char **argv) > { > // return Py_Main(argc, argv); > FILE *file = fopen(argv[0], "rt"); Py_Initialize(); > PyRun_AnyFile(file, argv[0]); > }