From ce01058fdeac5cc01020b8126fa15d87f5560de4 Mon Sep 17 00:00:00 2001 From: Patrice Vignola Date: Wed, 30 Jun 2021 18:25:59 -0700 Subject: [PATCH] Change bazel_command to bazel_executable --- configure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index 3ca6eb32477..5b3f577d6b1 100644 --- a/configure.py +++ b/configure.py @@ -479,13 +479,13 @@ def check_bazel_version(min_version, max_version): Returns: The bazel version detected. """ - bazel_command = which('bazel') - if bazel_command is None: + bazel_executable = which('bazel') + if bazel_executable is None: print('Cannot find bazel. Please install bazel.') sys.exit(1) stderr = open(os.devnull, 'wb') - curr_version = run_shell([bazel_command, '--version'], + curr_version = run_shell([bazel_executable, '--version'], allow_non_zero=True, stderr=stderr) if curr_version.startswith('bazel '):