Skip to content

Commit

Permalink
Fix processing errors on startup and execution on MacOS (#5769)
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux authored Nov 30, 2017
1 parent f5702ab commit f6acf37
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 @@ -105,7 +105,7 @@ def installedVersion(run=False):
si.wShowWindow = subprocess.SW_HIDE
with subprocess.Popen(
[Grass7Utils.command, '-v'],
shell=False,
shell=True if isMac() else False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
Expand Down Expand Up @@ -359,7 +359,7 @@ def executeGrass(commands, feedback, outputCommands=None):

with subprocess.Popen(
command,
shell=False,
shell=True if isMac() else False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
Expand Down Expand Up @@ -388,7 +388,7 @@ def executeGrass(commands, feedback, outputCommands=None):
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
with subprocess.Popen(
command,
shell=False,
shell=True if isMac() else False,
stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT,
Expand Down

0 comments on commit f6acf37

Please sign in to comment.