Skip to content

Commit f6acf37

Browse files
authoredNov 30, 2017
Fix processing errors on startup and execution on MacOS (#5769)
1 parent f5702ab commit f6acf37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def installedVersion(run=False):
105105
si.wShowWindow = subprocess.SW_HIDE
106106
with subprocess.Popen(
107107
[Grass7Utils.command, '-v'],
108-
shell=False,
108+
shell=True if isMac() else False,
109109
stdout=subprocess.PIPE,
110110
stdin=subprocess.DEVNULL,
111111
stderr=subprocess.STDOUT,
@@ -359,7 +359,7 @@ def executeGrass(commands, feedback, outputCommands=None):
359359

360360
with subprocess.Popen(
361361
command,
362-
shell=False,
362+
shell=True if isMac() else False,
363363
stdout=subprocess.PIPE,
364364
stdin=subprocess.DEVNULL,
365365
stderr=subprocess.STDOUT,
@@ -388,7 +388,7 @@ def executeGrass(commands, feedback, outputCommands=None):
388388
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
389389
with subprocess.Popen(
390390
command,
391-
shell=False,
391+
shell=True if isMac() else False,
392392
stdout=subprocess.PIPE,
393393
stdin=subprocess.DEVNULL,
394394
stderr=subprocess.STDOUT,

0 commit comments

Comments
 (0)
Please sign in to comment.