Preliminary support for python 2.7 on windows.
This commit is contained in:
parent
e071a96f68
commit
243e23f4e2
1 changed files with 3 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue