mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Update Grass7Utils.py
Related to https://issues.qgis.org/issues/20632 This seems to solve this issue, but I don't really know if this change may be introducing some collateral effect. It should be revised by someone with good knowledge of this piece of code.
This commit is contained in:
parent
6cc41a9474
commit
9b61eb8b71
@ -400,6 +400,11 @@ class Grass7Utils:
|
||||
# commands again.
|
||||
if not grassOutDone and outputCommands:
|
||||
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
|
||||
# For MS-Windows, we need to hide the console window.
|
||||
if isWindows():
|
||||
si = subprocess.STARTUPINFO()
|
||||
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
||||
si.wShowWindow = subprocess.SW_HIDE
|
||||
with subprocess.Popen(
|
||||
command,
|
||||
shell=False,
|
||||
|
Loading…
x
Reference in New Issue
Block a user