mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Specify the interpreter to run to avoid issues with several python installations on Windows. Bug: 1036606 Change-Id: Ib70d041acc52c940711460219acd8f4ad58637a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1992608 Reviewed-by: Anthony Polito <apolito@google.com> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
13 lines
517 B
Batchfile
13 lines
517 B
Batchfile
@echo off
|
|
:: Copyright 2019 The Chromium Authors. All rights reserved.
|
|
:: Use of this source code is governed by a BSD-style license that can be
|
|
:: found in the LICENSE file.
|
|
|
|
:: TODO(crbug.com/1003139): Remove.
|
|
:: Add Python 3 to PATH to work around crbug.com/1003139.
|
|
for /f %%i in (%~dp0python3_bin_reldir.txt) do set PYTHON3_BIN_RELDIR=%%i
|
|
set PATH=%~dp0%PYTHON3_BIN_RELDIR%;%PATH%
|
|
|
|
call "%~dp0\cipd_bin_setup.bat" > nul 2>&1
|
|
"%~dp0\.cipd_bin\vpython3.exe" -vpython-interpreter "%~dp0\python3.bat" %*
|