[1.11.x] Fixed Python 2/Windows libgdal crash if PATH contains non-ASCII symbols.

This commit is contained in:
Sergey Kholodilov 2017-03-09 18:12:08 +04:00 committed by Tim Graham
parent c7351eaa92
commit 993406770a
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if lib_path:
lib_names = None
elif os.name == 'nt':
# Windows NT shared libraries
lib_names = ['gdal111', 'gdal110', 'gdal19', 'gdal18', 'gdal17']
lib_names = [str('gdal111'), str('gdal110'), str('gdal19'), str('gdal18'), str('gdal17')]
elif os.name == 'posix':
# *NIX library names.
lib_names = ['gdal', 'GDAL', 'gdal1.11.0', 'gdal1.10.0', 'gdal1.9.0', 'gdal1.8.0', 'gdal1.7.0']