ctypes LoadLibrary search path
santoso.wijaya at gmail.com
Fri Aug 5 23:18:04 CEST 2011
Nevermind. I figured it out (d'oh!).
I had to append to `os.environ['PATH']`, not `sys.path`!
On Fri, Aug 5, 2011 at 2:13 PM, Santoso Wijaya <santoso.wijaya at gmail.com>wrote:
> Can anyone enlighten me to the search path mechanism in ctypes'
> LoadLibrary? I have a DLL that resides elsewhere that is not in any default
> search path. I tried adding the path to `sys.path` before attempting to load
> said DLL but I still get "WindowsError: [Error 126] The specified module
> could not be found."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list