Skip to content

Commit

Permalink
fix to grassWinShell
Browse files Browse the repository at this point in the history
  • Loading branch information
j08lue committed Jun 8, 2016
1 parent 9be98ac commit e94c24d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass/GrassUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ def grassWinShell():
folder = ProcessingConfig.getSetting(GrassUtils.GRASS_WIN_SHELL) or ''
if not os.path.exists(folder):
folder = None
if folder is None:
if folder is None and GrassUtils.grassPath():
folder = os.path.dirname(unicode(QgsApplication.prefixPath()))
folder = os.path.join(folder, 'msys')
return folder
return folder or ''

@staticmethod
def grassDescriptionPath():
Expand Down

0 comments on commit e94c24d

Please sign in to comment.