don't run GRASS commands in shell, that's not working

This commit is contained in:
William Kyngesburye 2018-10-31 20:55:56 -05:00
parent 15435ad56e
commit 3f72e0cd41

View File

@ -106,7 +106,7 @@ class Grass7Utils:
si.wShowWindow = subprocess.SW_HIDE si.wShowWindow = subprocess.SW_HIDE
with subprocess.Popen( with subprocess.Popen(
[Grass7Utils.command, '-v'], [Grass7Utils.command, '-v'],
shell=True if isMac() else False, shell=False,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL, stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
@ -361,7 +361,7 @@ class Grass7Utils:
with subprocess.Popen( with subprocess.Popen(
command, command,
shell=True if isMac() else False, shell=False,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL, stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
@ -390,7 +390,7 @@ class Grass7Utils:
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands) command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
with subprocess.Popen( with subprocess.Popen(
command, command,
shell=True if isMac() else False, shell=False,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL, stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,