This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jmoguill2
Recipients jmoguill2, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-02-09.02:45:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612838738.77.0.220121925422.issue43173@roundup.psfhosted.org>
In-reply-to
Content
Hi,
What's the correct way to set the DLL search path when running a python script?

It seems that it doesn't search the directories specified in PATH environment variable. 

FYI: For debugging the DLL loading issues, I'm using "Process Monitor" from sysinternals:
https://docs.microsoft.com/en-us/sysinternals/downloads/procmon,
but please share any tips if you have a better approach.

Also, the Python error message is not very informative:
when loading a python module (built using Cython), if it fails to load a specific DLL, it says 
"import module <module name> failed, DLL not found" but it doesn't say the name of the actual DLL that is not found.
It would be helpful if it listed the actual name of the DLL that it cannot find.
History
Date User Action Args
2021-02-09 02:45:38jmoguill2setrecipients: + jmoguill2, paul.moore, tim.golden, zach.ware, steve.dower
2021-02-09 02:45:38jmoguill2setmessageid: <1612838738.77.0.220121925422.issue43173@roundup.psfhosted.org>
2021-02-09 02:45:38jmoguill2linkissue43173 messages
2021-02-09 02:45:38jmoguill2create