py2exe currently does not set __file__ attribute on its main module, which can break scripts that rely on __file__ in the main module pointing to the 'program name', i.e. to open files in the same directory, etc.
This patch add support for __file__ by setting it to the module name.
Additionally it has a patch for not redefining Py_ssize_t when it is already defined, otherwise it breaks compilation under mingw.
Log in to post a comment.