Skip to content

Commit

Permalink
yield from ("libmagic.so", "libmagic.so.1")
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed May 26, 2024
1 parent 7255fd0 commit c471d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magic/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def _lib_candidates_linux():
This is necessary because alpine is bad
"""
yield "libmagic.so.1"
for filename in ("libmagic.so", "libmagic.so.1"):
yield find_library(filename)


def _lib_candidates_macos():
Expand Down

0 comments on commit c471d15

Please sign in to comment.