Skip to content

Commit

Permalink
don't run GRASS commands in shell, that's not working
Browse files Browse the repository at this point in the history
  • Loading branch information
William Kyngesburye committed Nov 1, 2018
1 parent 15435ad commit 3f72e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Expand Up @@ -106,7 +106,7 @@ def installedVersion(run=False):
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,
Expand Down Expand Up @@ -361,7 +361,7 @@ def executeGrass(commands, feedback, outputCommands=None):

with subprocess.Popen(
command,
shell=True if isMac() else False,
shell=False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
Expand Down Expand Up @@ -390,7 +390,7 @@ def executeGrass(commands, feedback, outputCommands=None):
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,
Expand Down

0 comments on commit 3f72e0c

Please sign in to comment.