Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit f3ab085

Browse files
authored
Add "magic-1.dll" to the list of DLL files to search for on Windows
This is the name of the DLL file generated when using vcpkg to build libmagic: https://github.com/microsoft/vcpkg/tree/master/ports/libmagic
1 parent b443195 commit f3ab085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magic/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _lib_candidates():
2121

2222
elif sys.platform in ('win32', 'cygwin'):
2323

24-
prefixes = ['libmagic', 'magic1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1']
24+
prefixes = ['libmagic', 'magic1', 'magic-1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1']
2525

2626
for i in prefixes:
2727
# find_library searches in %PATH% but not the current directory,

0 commit comments

Comments
 (0)