diff --git a/python/plugins/processing/algs/grass7/Grass7Utils.py b/python/plugins/processing/algs/grass7/Grass7Utils.py index af13db53e72..6e6751b11fa 100644 --- a/python/plugins/processing/algs/grass7/Grass7Utils.py +++ b/python/plugins/processing/algs/grass7/Grass7Utils.py @@ -106,7 +106,7 @@ class Grass7Utils: si.wShowWindow = subprocess.SW_HIDE with subprocess.Popen( [Grass7Utils.command, '-v'], - shell=True if isMac() else False, + shell=False, stdout=subprocess.PIPE, stdin=subprocess.DEVNULL, stderr=subprocess.STDOUT, @@ -361,7 +361,7 @@ class Grass7Utils: with subprocess.Popen( command, - shell=True if isMac() else False, + shell=False, stdout=subprocess.PIPE, stdin=subprocess.DEVNULL, stderr=subprocess.STDOUT, @@ -390,7 +390,7 @@ class Grass7Utils: command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands) with subprocess.Popen( command, - shell=True if isMac() else False, + shell=False, stdout=subprocess.PIPE, stdin=subprocess.DEVNULL, stderr=subprocess.STDOUT,