Skip to content
Permalink
Browse files

Revert "[processing] Extra check to ensure GRASS folder setting not a…

…lready None"

This reverts commit 36a820e.
  • Loading branch information
dakcarto committed Apr 26, 2016
1 parent 36a820e commit b3a0d9d146814f47f3b96601685c6a9cc1092769
@@ -87,7 +87,7 @@ def grassPath():
return ''

folder = ProcessingConfig.getSetting(GrassUtils.GRASS_FOLDER) or ''
if folder and not os.path.exists(folder):
if not os.path.exists(folder):
folder = None
if folder is None:
if isWindows():
@@ -111,7 +111,7 @@ def grassPath():
@staticmethod
def grassWinShell():
folder = ProcessingConfig.getSetting(GrassUtils.GRASS_WIN_SHELL) or ''
if folder and not os.path.exists(folder):
if not os.path.exists(folder):
folder = None
if folder is None:
folder = os.path.dirname(unicode(QgsApplication.prefixPath()))
@@ -84,7 +84,7 @@ def grassPath():
return ''

folder = ProcessingConfig.getSetting(Grass7Utils.GRASS_FOLDER) or ''
if folder and not os.path.exists(folder):
if not os.path.exists(folder):
folder = None
if folder is None:
if isWindows():

0 comments on commit b3a0d9d

Please sign in to comment.