Where does python look for a dll opened by ctypes.cdll.<name> on windows?

Viewed 11497

I'm afriad I couldn't find a simple answer for this on the internet, so maybe there will be one in the future because of this question!

I'm using pywiiuse, a python wrapper for the C wiiuse library on windows. I've gotten several plain C examples working simply by including the dll, header, and library in the directory of the source.

However, I'm wondering where to put the dll so that pywiiuse will find it. A look at the source shows that it is loaded as follows:

dll = ctypes.cdll.wiiuse

Running examples yields a module not found exception when I have the dll in the same directory as my test example.

Where does python look for the dll?

2 Answers
Related