python+ctypes fails to find my dll

Discussion created by crispincooper on Aug 23, 2011
Latest reply on Aug 25, 2011 by crispincooper

I have a python script which calls a dll, a la

It worked fine when the path to the dll was hardcoded:


but now I'd like to distribute the dll to other people, I don't know the absolute path.  It will however be in the same folder as the python script.

But neither of these work:


...both return the error "The specified module could not be found".

Does anyone know how to solve this?

Thanks in advance!