Skip to content
Snippets Groups Projects
Commit aa87680f authored by Jay's avatar Jay
Browse files

Updates how conditional gdal is imported

parent c0ca2ad6
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import importlib
import warnings
import sys
if 'osgeo' in sys.modules:
try:
gdal = importlib.util.find_spec('gdal')
ogr = importlib.util.find_spec('osgeo.ogr')
osr = importlib.util.find_spec('osr')
......@@ -12,7 +12,7 @@ if 'osgeo' in sys.modules:
ogr = ogr.loader.load_module()
osr = osr.loader.load_module()
gdal.UseExceptions()
else:
except:
gdal = None
ogr = None
osr = None
......
......@@ -8,7 +8,7 @@ with open('README.md', 'r') as f:
def setup_package():
setup(
name = "plio",
version = '1.0.0',
version = '1.1.0',
author = "Jay Laura",
author_email = "jlaura@usgs.gov",
description = ("I/O API to support planetary data formats."),
......
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