Skip to content

Commit a84d1e0

Browse files
committed
dl: fix Python <=3.11 on Windows
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 492d940 commit a84d1e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dynamic_library/_hook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
warnings.warn('Libraries registered via dynamic_library entrypoints will not be loaded!', RuntimeWarning)
1616
else:
1717
for lib in dynamic_library.get_libraries():
18+
lib = os.fspath(lib) # Needed by Python <=3.11 on Windows
1819
ctypes.CDLL(lib, ctypes.RTLD_LOCAL)

0 commit comments

Comments
 (0)