msys2-contrib / cpython-mingw

A friendly fork of CPython which adds support for Mingw-w64 + clang/gcc. See https://github.com/msys2-contrib/cpython-mingw/wiki for details
https://github.com/msys2-contrib/cpython-mingw/wiki
Other
38 stars 11 forks source link

Search DLLs only on paths added using `add_dll_directory()`. #144

Closed naveen521kk closed 1 year ago

naveen521kk commented 1 year ago

This is the default behavior on upstream Python. We previously reverted this behavior because it broke some use cases.

The old behavior can be restored by setting the environment variable PYTHONLEGACYWINDOWSDLLLOADING to 1.

Fixes https://github.com/msys2-contrib/cpython-mingw/issues/48 Also fixes https://github.com/msys2-contrib/cpython-mingw/issues/141

lazka commented 1 year ago

lgtm