The problem seems to have been that I was using the Python libraries from 1.5, but the bin directory for Python 1.5.2 was on my PATH environment variable. Wild! This seems to be an (unintended) consequence of the code in Modules/getpath.c. So the rule is, implement Py_SetProgramName when embedding Python. Bill