From e063bf16db59cd49f707c20292046c7781c81950 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sat, 9 Mar 2024 08:15:38 +0100 Subject: [PATCH] Make path to os.add_dll_directory() absolute --- src/swigtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swigtest.py b/src/swigtest.py index b6336af4..57a6e622 100644 --- a/src/swigtest.py +++ b/src/swigtest.py @@ -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: