Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuffat committed May 9, 2020
1 parent e1f0e1b commit 4a701c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fiona/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,14 @@ def wrapper(*args, **kwds):

if "GDAL_DATA" not in os.environ:

path = GDALDataFinder().search_wheel()

if path:
os.environ['GDAL_DATA'] = path
log.debug("GDAL data found in package, GDAL_DATA set to %r.", path)

# See https://github.com/mapbox/rasterio/issues/1631.
if GDALDataFinder().find_file("header.dxf"):
elif GDALDataFinder().find_file("header.dxf"):
log.debug("GDAL data files are available at built-in paths")

else:
Expand Down

0 comments on commit 4a701c3

Please sign in to comment.