Added windows stanza for default openjp2 installation location. #90
This commit is contained in:
parent
39ae3d423b
commit
5a78d9ad8e
1 changed files with 5 additions and 0 deletions
|
|
@ -109,6 +109,11 @@ def load_openjp2(libopenjp2_path):
|
|||
path = '/opt/local/lib/libopenjp2.dylib'
|
||||
if os.path.exists(path):
|
||||
libopenjp2_path = path
|
||||
elif os.name == 'nt':
|
||||
path = os.path.join('C:\\', 'Program files', 'OpenJPEG 2.0',
|
||||
'bin', 'openjp2.dll')
|
||||
if os.path.exists(path):
|
||||
libopenjpeg_path = path
|
||||
|
||||
if libopenjp2_path is None:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue