Skip to content

Commit 9b61eb8

Browse files
authoredNov 27, 2018
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.
1 parent 6cc41a9 commit 9b61eb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ def executeGrass(commands, feedback, outputCommands=None):
400400
# commands again.
401401
if not grassOutDone and outputCommands:
402402
command, grassenv = Grass7Utils.prepareGrassExecution(outputCommands)
403+
# For MS-Windows, we need to hide the console window.
404+
if isWindows():
405+
si = subprocess.STARTUPINFO()
406+
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
407+
si.wShowWindow = subprocess.SW_HIDE
403408
with subprocess.Popen(
404409
command,
405410
shell=False,

0 commit comments

Comments
 (0)
Please sign in to comment.