From 1f89cbb484a9a43c1611e3c6e13374bfbda5d0ac Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Thu, 24 Aug 2023 17:44:01 -0700 Subject: [PATCH] Fixes for python 3.11 Bazel previously had a bug where the source directory of the entrypoint python script would be added to the path. They added PYTHONSAFEPATH to the enviornment to fix it, which was introduced in python 3.11. Now that python is being updated to 3.11, the fix is in, which breaks some scripts that don't properly specify import folders. Add the import folders where required. Bug: 278602456 Test: ./build/bazel/ci/bp2build.sh Change-Id: I5b87f83247dfdfcb8bdb4f962466cbf522cc29c6 --- tools/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index 0de178b709..2dbb585a27 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -1,6 +1,7 @@ py_library( name = "event_log_tags", srcs = ["event_log_tags.py"], + imports = ["."], ) py_binary(