Nevermind. I figured it out (d'oh!).

I had to append to `os.environ['PATH']`, not `sys.path`!


~/santa


On Fri, Aug 5, 2011 at 2:13 PM, Santoso Wijaya <santoso.wij...@gmail.com>wrote:

> Hi,
>
> 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."
>
> Thanks,
>
> ~/santa
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to