Skip to content
Permalink
Browse files

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

  • Loading branch information
William Kyngesburye
William Kyngesburye committed Nov 1, 2018
1 parent 15435ad commit 3f72e0cd4164d75e9c860dbe4a7ba86025b6a1d6
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/grass7/Grass7Utils.py
@@ -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,
@@ -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,
@@ -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,

0 comments on commit 3f72e0c

Please sign in to comment.
You can’t perform that action at this time.