OPENJPEG_VERSION is now the version of the software, not the library.

For #110
This commit is contained in:
jevans 2013-09-05 21:34:52 -04:00
commit 80cb2585b1

View file

@ -10,10 +10,12 @@ import numpy as np
import glymur import glymur
# Need to know the openjpeg version. If openjpeg is not installed, we use # Need to know the version of the openjpeg software. If openjpeg is not
# '0.0.0' # installed, we use # '0.0.0'
OPENJPEG_VERSION = '0.0.0' OPENJPEG_VERSION = '0.0.0'
if glymur.lib.openjpeg.OPENJPEG is not None: if glymur.lib.openjp2.OPENJP2 is not None:
OPENJPEG_VERSION = glymur.lib.openjp2.version()
elif glymur.lib.openjpeg.OPENJPEG is not None:
OPENJPEG_VERSION = glymur.lib.openjpeg.version() OPENJPEG_VERSION = glymur.lib.openjpeg.version()
# Need to know of the libopenjp2 version is the official 2.0.0 release and NOT # Need to know of the libopenjp2 version is the official 2.0.0 release and NOT