Skip to content

Commit 8dcd6c9

Browse files
Update error message for invalid python_path
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent aed97f6 commit 8dcd6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/py_executable.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ def _get_runtime_details(ctx, semantics):
11441144

11451145
flag_interpreter_path = read_possibly_native_flag(ctx, "python_path")
11461146
if not flag_interpreter_path.startswith("python") and not paths.is_absolute(flag_interpreter_path):
1147-
fail("python_path must be an absolute path when it is set.")
1147+
fail("'python_path' must be an absolute path or a name to be resolved from the system PATH (e.g., 'python', 'python3').")
11481148

11491149
toolchain_runtime, effective_runtime = _maybe_get_runtime_from_ctx(ctx)
11501150
if not effective_runtime:

0 commit comments

Comments
 (0)