Author eryksun
Recipients eryksun, paul.moore, plimkilde, steve.dower, tim.golden, zach.ware
Date 2020-01-20.16:20:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579537230.32.0.925715343473.issue39393@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-20 16:20:30eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, plimkilde
2020-01-20 16:20:30eryksunsetmessageid: <1579537230.32.0.925715343473.issue39393@roundup.psfhosted.org>
2020-01-20 16:20:30eryksunlinkissue39393 messages
2020-01-20 16:20:29eryksuncreate