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 f8bbdf5 commit 891c16a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Original file line number Diff line number Diff line change
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 891c16a

Please sign in to comment.