mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Revert "[processing] Extra check to ensure GRASS folder setting not already None"
This reverts commit 36a820e51657bf0c3069e1fd287d6b452a3cd1e0.
This commit is contained in:
parent
36a820e516
commit
b3a0d9d146
@ -87,7 +87,7 @@ class GrassUtils:
|
||||
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 @@ class GrassUtils:
|
||||
@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 @@ class Grass7Utils:
|
||||
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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user