Extension on Windows

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Fri Nov 19 08:12:49 EST 2010


Eric Frederich wrote:
> Do I put them [DLL dependencies] in some environment variable?
> Do I put them in site-packages along with the .pyd file, or in some
> other directory?

Take a look at the LoadLibrary() docs:
  http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx

These further lead on to:
  http://msdn.microsoft.com/en-us/library/ms682586(v=VS.85).aspx
which details in what order different places are searched for DLLs.

If you put the DLL in the same directory as your PYD, it should work. This
is not the most elegant solution though, see above for more info.

Cheers!

Uli

-- 
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list