mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
don't run GRASS commands in shell, that's not working
This commit is contained in:
parent
15435ad56e
commit
3f72e0cd41
@ -106,7 +106,7 @@ class Grass7Utils:
|
|||||||
si.wShowWindow = subprocess.SW_HIDE
|
si.wShowWindow = subprocess.SW_HIDE
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
[Grass7Utils.command, '-v'],
|
[Grass7Utils.command, '-v'],
|
||||||
shell=True if isMac() else False,
|
shell=False,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stdin=subprocess.DEVNULL,
|
stdin=subprocess.DEVNULL,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
@ -361,7 +361,7 @@ class Grass7Utils:
|
|||||||
|
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
command,
|
command,
|
||||||
shell=True if isMac() else False,
|
shell=False,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stdin=subprocess.DEVNULL,
|
stdin=subprocess.DEVNULL,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
@ -390,7 +390,7 @@ class Grass7Utils:
|
|||||||
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
|
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
command,
|
command,
|
||||||
shell=True if isMac() else False,
|
shell=False,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stdin=subprocess.DEVNULL,
|
stdin=subprocess.DEVNULL,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user