mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Change bazel_command to bazel_executable
This commit is contained in:
@@ -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 '):
|
||||
|
||||
Reference in New Issue
Block a user