Skip to content

Commit 4c16c93

Browse files
committed
Document that find_library() doesn't help MacPorts on Python 3
1 parent 7d878ff commit 4c16c93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openslide/lowlevel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
except OSError:
4444
# MacPorts doesn't add itself to the dyld search path, but
4545
# does add itself to the find_library() search path
46-
# (DEFAULT_LIBRARY_FALLBACK in ctypes.macholib.dyld).
46+
# (DEFAULT_LIBRARY_FALLBACK in ctypes.macholib.dyld) on
47+
# Python 2.6 and 2.7. Python 3 users on MacPorts should add
48+
# the MacPorts lib directory to DYLD_LIBRARY_PATH.
4749
import ctypes.util
4850
_lib = ctypes.util.find_library('openslide')
4951
if _lib is None:

0 commit comments

Comments
 (0)