Need to infer the location of openjp2 when not found by ctypes. #90
This commit is contained in:
parent
372bfc2943
commit
ca740f90f9
1 changed files with 6 additions and 0 deletions
|
|
@ -104,6 +104,12 @@ def load_openjp2(libopenjp2_path):
|
|||
# No help from the config file, try to find it ourselves.
|
||||
libopenjp2_path = find_library('openjp2')
|
||||
|
||||
if libopenjp2_path is None:
|
||||
if platform.system() == 'Darwin':
|
||||
path = '/opt/local/lib/libopenjp2.dylib'
|
||||
if os.path.exists(path):
|
||||
libopenjp2_path = path
|
||||
|
||||
if libopenjp2_path is None:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue