[issue10854] Output DLL name in error message of ImportError when DLL is missing
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Jan 7 18:53:18 CET 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
The code is in Python/dynload_win.c
To load an extension module mymodule.pyd, Python calls LoadLibrary('/path/to/mymodule.pyd'); when it returns NULL, the code calls GetLastError() (which returns 126 in this case) then FormatMessage to get an error message.
To get the full path to the .pyd, you can use imp.find_module(), but there is nothing else we can do I fear.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10854>
_______________________________________
More information about the Python-bugs-list
mailing list