Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use add_dll_directory() to add path for DLL resolution #1201

Closed
simonsan opened this issue Nov 29, 2019 · 2 comments
Closed

Use add_dll_directory() to add path for DLL resolution #1201

simonsan opened this issue Nov 29, 2019 · 2 comments
Labels
lang: python Done in Python code os: windows Windows-specific issue

Comments

@simonsan
Copy link
Contributor

Python 3.8 changes the behaviour of resolving DLLs on Windows.

DLL dependencies for extension modules and DLLs loaded with ctypes on Windows are now resolved more securely. Only the system paths, the directory containing the DLL or PYD file, and directories added with add_dll_directory() are searched for load-time dependencies. Specifically, PATH and the current working directory are no longer used, and modifications to these will no longer have any effect on normal DLL resolution. If your application relies on these mechanisms, you should check for add_dll_directory() and if it exists, use it to add your DLLs directory while loading your library. Note that Windows 7 users will need to ensure that Windows Update KB2533623 has been installed (this is also verified by the installer). (Contributed by Steve Dower in bpo-36085.)

Src.: https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew

I'm not entirely sure if this is also an Upstream issue as well for the python dependencies we pull in.

@simonsan
Copy link
Contributor Author

Was this resolved by #1415 ?

@heinezen
Copy link
Member

@simonsan I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: python Done in Python code os: windows Windows-specific issue
Projects
None yet
Development

No branches or pull requests

2 participants