dll in project?

Tim Golden mail at timgolden.me.uk
Mon Mar 15 04:41:10 EDT 2010


On 15/03/2010 03:43, Alex Hall wrote:
> I have a dll I am trying to use, but I get a Windows error 126, "the
> specified module could not be found". Here is the code segment:
> nvdaController=ctypes.windll.LoadLibrary("nvdaControllerClient32.dll") 	
>
> I have the specified dll file in the same directory as the file trying
> to use said dll

The DLL search path:

http://msdn.microsoft.com/en-us/library/7d83bc18%28VS.80%29.aspx

includes the directory which holds the executable for the current prcoess;
it include the current directory; and it includes other things which I
doubt apply here.

But it doesn't include (if I may be permitted a little well-intentioned
ridicule) the directory where the current Python module is stored.
In other words: what does os.getcwd () return?

TJG



More information about the Python-list mailing list