linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / python-magic / libmagic-path.patch
blob5a1dbec7d51b264d229690a98a5acbd9d5175eab
1 diff --git a/magic/loader.py b/magic/loader.py
2 index 6b2bfcb..69778af 100644
3 --- a/magic/loader.py
4 +++ b/magic/loader.py
5 @@ -5,11 +5,7 @@ import glob
6 def load_lib():
7 libmagic = None
8 # Let's try to find magic or magic1
9 - dll = ctypes.util.find_library('magic') \
10 - or ctypes.util.find_library('magic1') \
11 - or ctypes.util.find_library('cygmagic-1') \
12 - or ctypes.util.find_library('libmagic-1') \
13 - or ctypes.util.find_library('msys-magic-1') # for MSYS2
14 + dll = '@libmagic@'
16 # necessary because find_library returns None if it doesn't find the library
17 if dll: