Be consistent, always make _OPENJP2 None if there's a problem.

This commit is contained in:
John Evans 2013-05-27 12:00:29 -04:00
commit 4da73fd36b

View file

@ -55,6 +55,9 @@ def _config():
from ctypes.util import find_library
libopenjp2_path = find_library('openjp2')
if libopenjp2_path is None:
return None
try:
_OPENJP2 = ctypes.CDLL(libopenjp2_path)
except OSError: