Skip to content

Commit 0fd1eb1

Browse files
author
Sam Schott
committed
revert find_library patch...
... and wait for Python fix in python/cpython#21241
1 parent f00c88c commit 0fd1eb1

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

maestral_cocoa/__init__.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
import os.path as osp
3-
from ctypes import util
4-
5-
6-
# patch find_library to work around library
7-
# discovery issue on macOS Big Sur https://bugs.python.org/issue41100
8-
9-
def _find_library(name):
10-
paths = [
11-
f'/System/Library/Frameworks/{name}.framework/{name}',
12-
f'/usr/lib/lib{name}.dylib',
13-
f'{name}.dylib',
14-
]
15-
16-
for path in paths:
17-
if osp.islink(path):
18-
return path
19-
20-
return None
21-
22-
23-
util.find_library = _find_library
24-
252

263
__author__ = 'Sam Schott'
274
__version__ = '1.2.0.dev1'

0 commit comments

Comments
 (0)