diff options
author | valpogus <32718480+valpogus@users.noreply.github.com> | 2022-06-16 13:26:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 13:26:45 +0200 |
commit | f3ab085ce3610e5d4e8f695370cecc5d7d034cbe (patch) | |
tree | fb10a4ccfd571958ce4f3215b7d09db5b0752312 | |
parent | b443195104d89363b93a547584c1a12fce3b57ec (diff) | |
download | python-magic-f3ab085ce3610e5d4e8f695370cecc5d7d034cbe.tar.gz |
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
-rw-r--r-- | magic/loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |