Skip to content

Commit e94c24d

Browse files
committed
fix to grassWinShell
1 parent 9be98ac commit e94c24d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/grass/GrassUtils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def grassWinShell():
113113
folder = ProcessingConfig.getSetting(GrassUtils.GRASS_WIN_SHELL) or ''
114114
if not os.path.exists(folder):
115115
folder = None
116-
if folder is None:
116+
if folder is None and GrassUtils.grassPath():
117117
folder = os.path.dirname(unicode(QgsApplication.prefixPath()))
118118
folder = os.path.join(folder, 'msys')
119-
return folder
119+
return folder or ''
120120

121121
@staticmethod
122122
def grassDescriptionPath():

0 commit comments

Comments
 (0)