Basic openjpeg 1.5.1 tests running on 64-bit linux.

This commit is contained in:
John Evans 2013-07-03 07:47:29 -04:00
commit 4bb034e966

View file

@ -11,9 +11,8 @@ if os.name == "nt":
else: else:
if platform.system() == 'Darwin': if platform.system() == 'Darwin':
_OPENJPEG = ctypes.CDLL('/opt/local/lib/libopenjpeg.dylib') _OPENJPEG = ctypes.CDLL('/opt/local/lib/libopenjpeg.dylib')
if _OPENJPEG is None: elif platform.system() == 'Linux':
# Make one last attempt. Does the system know where it is? _OPENJPEG = ctypes.CDLL(find_library('openjpeg'))
_OPENJPEG = find_library('openjpeg')
OPJ_PATH_LEN = 4096 # maximum allowed size for filenames OPJ_PATH_LEN = 4096 # maximum allowed size for filenames