Tweak Windows DLL search paths

This commit is contained in:
Joerg Wunsch
2024-03-08 16:10:22 +01:00
parent cfe608a63f
commit 8c4f3b0632

View File

@@ -21,9 +21,10 @@ if os.name == 'posix':
builddir = f'build_{sysname}/src'
elif os.name == 'nt':
# Windows
for candidate in ['build_msvc/src', 'build_msys64/src']:
for candidate in ['build_msvc/src', 'build_mingw64/src']:
if os.path.exists(candidate):
builddir = candidate
os.add_dll_directory(candidate)
break
if builddir == None: