Skip to content

Commit

Permalink
Make path to os.add_dll_directory() absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
dl8dtl committed Mar 9, 2024
1 parent 3f5c32b commit e063bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swigtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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:
Expand Down

0 comments on commit e063bf1

Please sign in to comment.