Okay, thats just the question. I did that what you wrote but it doesn't really works. What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is empty?
Why so? Are you in an embedded environment or something that doesn't have a filesystem? Calling Py_SetProgramName with an absolute path would be the easiest way to make it work.
-- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list