File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/plugins/grass/scripts Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 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' ]
Original file line number Diff line number Diff line change 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' ]
You can’t perform that action at this time.
0 commit comments