[issue26071] bdist_wininst created binaries fail to start and find 32bit Pythons

Mark Hammond report at bugs.python.org
Mon Jan 11 01:19:31 EST 2016


Mark Hammond added the comment:

> > The directory of the DLL can be added to the search path if you
> > use LoadLibraryEx with the flag LOAD_WITH_ALTERED_SEARCH_PATH and use an absolute path. 

> That sounds like the better fix then. I thought there was something along those lines available.

That does work. I didn't do it that way initially as I felt your earlier comment:

> Setting the working directory is likely to lead to a more reliable initial state.

Was an additional nice outcome of just changing the cwd. This patch does the LoadLibraryEx() and works (but obviously leaves the CWD being the downloaded directory, probably %temp%)

I'll check this in once I get the green-light, thanks.

----------
Added file: http://bugs.python.org/file41575/bdist.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26071>
_______________________________________


More information about the Python-bugs-list mailing list