Skip to content

Commit 6267616

Browse files
committed
Fix for issue with gdal data in wrong location [publish]
1 parent e0a955d commit 6267616

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108
gdal_path = subprocess.check_output([mapnik_config, '--gdal-data']).rstrip('\n')
109109
else:
110110
gdal_path = 'mason_packages/.link/share/gdal/'
111+
if os.path.exists('mason_packages/.link/share/gdal/gdal/'):
112+
gdal_path = 'mason_packages/.link/share/gdal/gdal/'
111113
if gdal_path:
112114
gdal_files = os.listdir(gdal_path)
113115
gdal_files = [os.path.join(gdal_path, f) for f in gdal_files]

0 commit comments

Comments
 (0)