Skip to content

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)