From f3ab085ce3610e5d4e8f695370cecc5d7d034cbe Mon Sep 17 00:00:00 2001 From: valpogus <32718480+valpogus@users.noreply.github.com> Date: Thu, 16 Jun 2022 13:26:45 +0200 Subject: 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 --- magic/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magic/loader.py b/magic/loader.py index 931f161..228a35c 100644 --- a/magic/loader.py +++ b/magic/loader.py @@ -21,7 +21,7 @@ def _lib_candidates(): elif sys.platform in ('win32', 'cygwin'): - prefixes = ['libmagic', 'magic1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1'] + prefixes = ['libmagic', 'magic1', 'magic-1', 'cygmagic-1', 'libmagic-1', 'msys-magic-1'] for i in prefixes: # find_library searches in %PATH% but not the current directory, -- cgit v1.2.1