Skip to content

Commit

Permalink
reorganized grass python interface, patch by cgsbob
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10936 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jun 16, 2009
1 parent e79c0e4 commit 0cf4ee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/plugins/grass/scripts/qgis.db.connect-login.pg.py
Expand Up @@ -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']
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/grass/scripts/qgis.v.out.ogr.pg.py
Expand Up @@ -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']
Expand Down

0 comments on commit 0cf4ee3

Please sign in to comment.