Skip to content

Commit 3ab9608

Browse files
committed
Revert "added path for local homebrew installation (ahupp#267)"
This reverts commit cd3929f.
1 parent 7cde785 commit 3ab9608

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

magic/loader.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44
import glob
55
import os.path
6-
import subprocess
76

87
def _lib_candidates():
98

@@ -14,16 +13,8 @@ def _lib_candidates():
1413
paths = [
1514
'/opt/local/lib',
1615
'/usr/local/lib',
17-
'/opt/homebrew/lib'
18-
]
19-
20-
try:
21-
local_brew_path = subprocess.check_output(['brew', '--prefix']).decode('UTF-8')
22-
paths.append(f'{local_brew_path.strip()}/lib')
23-
except:
24-
pass
25-
26-
paths += glob.glob('/usr/local/Cellar/libmagic/*/lib')
16+
'/opt/homebrew/lib',
17+
] + glob.glob('/usr/local/Cellar/libmagic/*/lib')
2718

2819
for i in paths:
2920
yield os.path.join(i, 'libmagic.dylib')

0 commit comments

Comments
 (0)