Make path to os.add_dll_directory() absolute

This commit is contained in:
Joerg Wunsch
2024-03-09 08:15:38 +01:00
parent 3f5c32b6d4
commit e063bf16db

View File

@@ -24,7 +24,7 @@ elif os.name == 'nt':
for candidate in ['build_msvc/src', 'build_mingw64/src']:
if os.path.exists(candidate):
builddir = candidate
os.add_dll_directory(candidate)
os.add_dll_directory(os.path.realpath(candidate))
break
if builddir == None: