Eryk Sun <eryk...@gmail.com> added the comment:

That clarification seems okay to me. The error message is in load_library in 
Modules/_ctypes/callproc.c. 

The underlying problem is that the directory of the DLL is only added to the 
search path (in CDLL.__init__ in Lib/ctypes/__init__.py) if the caller uses a 
qualified path. This is an OS limit that we can't avoid.

Also note that the suggestion to use a qualified path won't necessarily resolve 
the problem, in which case scripts will have to use os.add_dll_directory, and 
find a reliable way to identify the required directories.

----------
components: +Extension Modules
keywords: +easy (C)
nosy: +eryksun
stage:  -> needs patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39393>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to