Message360323
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. |
|
Date |
User |
Action |
Args |
2020-01-20 16:20:30 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, plimkilde |
2020-01-20 16:20:30 | eryksun | set | messageid: <1579537230.32.0.925715343473.issue39393@roundup.psfhosted.org> |
2020-01-20 16:20:30 | eryksun | link | issue39393 messages |
2020-01-20 16:20:29 | eryksun | create | |
|