@@ -45,7 +45,6 @@ class Grass7Utils:
45
45
GRASS_REGION_YMAX = 'GRASS7_REGION_YMAX'
46
46
GRASS_REGION_CELLSIZE = 'GRASS7_REGION_CELLSIZE'
47
47
GRASS_FOLDER = 'GRASS7_FOLDER'
48
- GRASS_WIN_SHELL = 'GRASS7_WIN_SHELL'
49
48
GRASS_LOG_COMMANDS = 'GRASS7_LOG_COMMANDS'
50
49
GRASS_LOG_CONSOLE = 'GRASS7_LOG_CONSOLE'
51
50
@@ -103,24 +102,13 @@ def grassPath():
103
102
104
103
return folder
105
104
106
- @staticmethod
107
- def grassWinShell ():
108
- folder = ProcessingConfig .getSetting (Grass7Utils .GRASS_WIN_SHELL )
109
- if not os .path .exists (folder ):
110
- folder = None
111
- if folder is None :
112
- folder = os .path .dirname (unicode (QgsApplication .prefixPath ()))
113
- folder = os .path .join (folder , 'msys' )
114
- return folder
115
-
116
105
@staticmethod
117
106
def grassDescriptionPath ():
118
107
return os .path .join (os .path .dirname (__file__ ), 'description' )
119
108
120
109
@staticmethod
121
110
def createGrass7Script (commands ):
122
111
folder = Grass7Utils .grassPath ()
123
- shell = Grass7Utils .grassWinShell ()
124
112
125
113
script = Grass7Utils .grassScriptFilename ()
126
114
gisrc = userFolder () + os .sep + 'processing.gisrc7' # FIXME: use temporary file
@@ -139,9 +127,6 @@ def createGrass7Script(commands):
139
127
output = open (script , 'w' )
140
128
output .write ('set HOME=' + os .path .expanduser ('~' ) + '\n ' )
141
129
output .write ('set GISRC=' + gisrc + '\n ' )
142
- output .write ('set GRASS_SH=' + shell + '\\ bin\\ sh.exe\n ' )
143
- output .write ('set PATH=' + shell + os .sep + 'bin;' + shell + os .sep
144
- + 'lib;' + '%PATH%\n ' )
145
130
output .write ('set WINGISBASE=' + folder + '\n ' )
146
131
output .write ('set GISBASE=' + folder + '\n ' )
147
132
output .write ('set GRASS_PROJSHARE=' + folder + os .sep + 'share'
0 commit comments