Skip to content

Commit

Permalink
g.proj.identify: remove duplicate 'osr' py module import (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Oct 1, 2020
1 parent f6a9b5b commit 01979f7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions grass7/general/g.proj.identify/g.proj.identify.py
Expand Up @@ -49,14 +49,20 @@
#%end

import os
from subprocess import PIPE

from grass.script import core as grass
from grass.pygrass.modules import Module
from subprocess import PIPE
from osgeo import osr

try:
from osgeo import osr
except:
grass.fatal(_("Unable to load GDAL Python bindings (requires package 'python-gdal' being installed)"))
except ImportError:
grass.fatal(
_(
"Unable to load GDAL Python bindings (requires package "
"'python-gdal' being installed)"
),
)


def writeEPSGtoPEMANENT(epsg):
Expand Down

0 comments on commit 01979f7

Please sign in to comment.