diff --git a/src/plugins/grass/scripts/qgis.db.connect-login.pg.py b/src/plugins/grass/scripts/qgis.db.connect-login.pg.py index 5e9d9e234df8..23f900aed6cc 100755 --- a/src/plugins/grass/scripts/qgis.db.connect-login.pg.py +++ b/src/plugins/grass/scripts/qgis.db.connect-login.pg.py @@ -73,9 +73,11 @@ import os import string try: + from grass.script import core as grass +except ImportError: import grass except: - raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version 6.4" ) + raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version >= 6.4" ) def main(): host = options['host'] diff --git a/src/plugins/grass/scripts/qgis.v.out.ogr.pg.py b/src/plugins/grass/scripts/qgis.v.out.ogr.pg.py index 5779f7d0cc37..be4eb50bdee0 100755 --- a/src/plugins/grass/scripts/qgis.v.out.ogr.pg.py +++ b/src/plugins/grass/scripts/qgis.v.out.ogr.pg.py @@ -107,9 +107,11 @@ import os import string try: + from grass.script import core as grass +except ImportError: import grass except: - raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version 6.4" ) + raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version >= 6.4" ) def main(): input = options['input']