Commit 113d3c9d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix for raising a warning although everything is fine

__init__:
- fixed a wrong module reference
parent b00ca185
......@@ -22,15 +22,17 @@ __author__='Daniel Scheffler'
# Validate GDAL version
try:
import gdal
import gdalnumeric
except:
from osgeo import gdal
from osgeo import gdalnumeric
try:
gdal.Warp
gdal.Translate
gdal.OpenNumPyArray
gdalnumeric.OpenNumPyArray
except AttributeError:
import warnings
warnings.warn("Your GDAL version is too old to support all functionalities of the 'py_tools_ds' package. "
"Please update GDAL!")
del gdal
\ No newline at end of file
del gdal, gdalnumeric
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment