From 4bb034e9668745e82fc355074903026d0ffbfc6e Mon Sep 17 00:00:00 2001 From: John Evans Date: Wed, 3 Jul 2013 07:47:29 -0400 Subject: [PATCH] Basic openjpeg 1.5.1 tests running on 64-bit linux. --- glymur/lib/openjpeg.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/glymur/lib/openjpeg.py b/glymur/lib/openjpeg.py index b4b6ced..d2fceb1 100644 --- a/glymur/lib/openjpeg.py +++ b/glymur/lib/openjpeg.py @@ -11,9 +11,8 @@ if os.name == "nt": else: if platform.system() == 'Darwin': _OPENJPEG = ctypes.CDLL('/opt/local/lib/libopenjpeg.dylib') -if _OPENJPEG is None: - # Make one last attempt. Does the system know where it is? - _OPENJPEG = find_library('openjpeg') + elif platform.system() == 'Linux': + _OPENJPEG = ctypes.CDLL(find_library('openjpeg')) OPJ_PATH_LEN = 4096 # maximum allowed size for filenames