<div>Nevermind. I figured it out (d'oh!).<br clear="all"></div><div><br></div><div>I had to append to `os.environ['PATH']`, not `sys.path`!</div><div><br></div><div><br></div>~/santa<br>
<br><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 2:13 PM, Santoso Wijaya <span dir="ltr"><<a href="mailto:santoso.wijaya@gmail.com">santoso.wijaya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Hi,<br clear="all"></div><div><br></div><div>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."</div>


<div><br></div><div>Thanks,</div><div><br></div>~/santa<br>
</blockquote></div><br>