[python-win32] Extending DLL search path?

Arve Knudsen arve.knudsen at gmail.com
Mon Oct 13 11:14:05 CEST 2008


On Wed, Oct 1, 2008 at 6:56 AM, Larry Bates <larry.bates at websafe.com> wrote:
> Arve Knudsen wrote:
>>
>> Hi
>>
>> I have a C++ program which embeds Python and is itself modularized
>> into several DLLs. The Python part (extensions) of the application
>> again links to these DLLs, the problem is the containing catalog (also
>> containing the executable itself) is not on the PATH, so the DLLs
>> aren't resolved when loading the Python extensions. Is there any smart
>> way of extending the DLL search path at runtime?
>>
>> Thanks,
>> Arve
>
> Take a look at apppath registry entries.

This is pretty strange .. I've now added an App Paths registry entry
for my application, and the dependency DLLs are still not being found.
This is only a problem with the Python DLLs (.pyd's).

Arve


More information about the python-win32 mailing list