Skip to content

add_dll_directory to specify dll paths on windows #10692

Answered by nicoddemus
james-thunes asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Try adding your os.add_dll_directory call to your top-most conftest.py file. pytest loads the top-most conftest.py file before starting to load the test modules, so this should work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@james-thunes
Comment options

Answer selected by james-thunes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants