Skip to content
Permalink
Browse files

[processing] include GRASS path in the error message to make it more …

…informative (fix #13188)
  • Loading branch information
alexbruy committed Jan 18, 2016
1 parent c288311 commit 75926f52aaf479bbe663978b05b7ba216cea137e
@@ -365,10 +365,10 @@ def checkGrassIsInstalled(ignorePreviousState=False):
cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
if not os.path.exists(cmdpath):
return GrassUtils.tr(
'The specified GRASS folder does not contain a valid '
'The specified GRASS folder "{}" does not contain a valid '
'set of GRASS modules. Please, go to the Processing '
'settings dialog, and check that the GRASS folder is '
'correctly configured')
'correctly configured'.format(os.path.join(path, 'bin')))

if not ignorePreviousState:
if GrassUtils.isGrassInstalled:
@@ -363,10 +363,10 @@ def checkGrass7IsInstalled(ignorePreviousState=False):
cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
if not os.path.exists(cmdpath):
return Grass7Utils.tr(
'The specified GRASS GIS 7 folder does not contain a valid '
'set of GRASS GIS 7 modules.\nPlease, go to the Processing '
'settings dialog, and check that the GRASS GIS 7\n'
'folder is correctly configured')
'The specified GRASS 7 folder "{}" does not contain '
'a valid set of GRASS 7 modules.\nPlease, go to the '
'Processing settings dialog, and check that the '
'GRASS 7\nfolder is correctly configured'.format(os.path.join(path, 'bin')))

if not ignorePreviousState:
if Grass7Utils.isGrass7Installed:

0 comments on commit 75926f5

Please sign in to comment.
You can’t perform that action at this time.