qgis_grass_py.patch

patch to use the new python grass module - cgsbob -, 2009-06-15 04:35 PM

Download (1.31 KB)

View differences:

src/plugins/grass/scripts/qgis.v.out.ogr.pg.py (working copy)
107 107
import os
108 108
import string
109 109
try:
110
    from grass.script import core as grass
111
except ImportError:
110 112
    import grass
111 113
except:
112
    raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version 6.4" )
114
    raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version >= 6.4" )
113 115

  
114 116
def main():
115 117
    input = options['input']
src/plugins/grass/scripts/qgis.db.connect-login.pg.py (working copy)
73 73
import os
74 74
import string
75 75
try:
76
    from grass.script import core as grass
77
except ImportError:
76 78
    import grass
77 79
except:
78
    raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version 6.4" )
80
    raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version >= 6.4" )
79 81

  
80 82
def main():
81 83
    host = options['host']