From 19d4809e112652f918494840bab819603b0a2816 Mon Sep 17 00:00:00 2001 From: Bruce Dawson Date: Thu, 2 Apr 2020 17:39:31 +0000 Subject: [PATCH] Use "call" in gclient.bat to restore title The title of command prompt windows indicates what command is running. However it is easy to confuse Windows so that it doesn't clear the status when a program termintes. Apparently a tail from one batch file to another is sufficient to do this. This change uses "call" to run python to avoid this minor glitch, making is so that I can tell when gclient has completed merely by glancing at the command prompt status bar. Change-Id: Ibd310362b8dd78589abc443be1841f0937c791fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2133303 Reviewed-by: Edward Lesmes Commit-Queue: Bruce Dawson --- gclient.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gclient.bat b/gclient.bat index bb18542ac9..39230b3e29 100755 --- a/gclient.bat +++ b/gclient.bat @@ -18,7 +18,7 @@ set PATH=%PATH%;%~dp0 :: Defer control. IF "%GCLIENT_PY3%" == "1" ( :: TODO(1003139): Use vpython3 once vpython3 works on Windows. - python3 "%~dp0gclient.py" %* + call python3 "%~dp0gclient.py" %* ) ELSE ( - python "%~dp0gclient.py" %* + call python "%~dp0gclient.py" %* )