Preliminary support for python 2.7 on windows.

This commit is contained in:
John G Evans 2013-07-03 11:15:40 -04:00
commit 243e23f4e2

View file

@ -7,7 +7,9 @@ import platform
import os
if os.name == "nt":
_OPENJPEG = ctypes.windll.LoadLibrary('openjpeg')
path = os.path.join('C:\\', 'Program files', 'OpenJPEG 1.5',
'bin', 'openjpeg.dll')
_OPENJPEG = ctypes.windll.LoadLibrary(path)
else:
if platform.system() == 'Darwin':
_OPENJPEG = ctypes.CDLL('/opt/local/lib/libopenjpeg.dylib')