[gdal-dev] "New" style import

Jose Gomez-Dans jgomezdans at gmail.com
Wed Apr 7 04:10:36 PDT 2021


Hi,
I've recently updated GDAL to 3.2.1. I mostly use it from Python, and have
oodles of scripts from the past that use "import gdal" somewhere. With the
newer versions of GDAL, this is deprecated and is now "from osgeo import
gdal".

Is there some hacky workaround/sacrifice to the technical debt gods to
carry on using "import gdal" for legacy codes?

Thanks!
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210407/e3d4b756/attachment.html>


More information about the gdal-dev mailing list