Skip to content
Snippets Groups Projects
Commit 3372c096 authored by TravisGabrielUSGS's avatar TravisGabrielUSGS Committed by GitHub
Browse files

Allows the user (or CI) to grab gdal from osgeo instead, if available (#162)

* Allows the user (or CI) to grab gdal from osgeo instead, if available

* Fixing the imported package

* The import error was causing travis-CI to fail.

* Reverting old PR edits and moving attempted oseo import to init
parent 9a04f385
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,11 @@ try:
osr = osr.loader.load_module()
gdal.UseExceptions()
except:
gdal = None
try:
gdal = importlib.util.find_spec('osgeo.gdal')
gdal = gdal.loader.load_module()
except:
gdal = None
ogr = None
osr = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment