diff --git a/python/runfiles/BUILD.bazel b/python/runfiles/BUILD.bazel index 3a93d40f32..c6cfc2fa94 100644 --- a/python/runfiles/BUILD.bazel +++ b/python/runfiles/BUILD.bazel @@ -27,6 +27,11 @@ py_library( "__init__.py", "runfiles.py", ], + imports = [ + # Add the repo root so `import python.runfiles.runfiles` works. This makes it agnostic + # to the --experimental_python_import_all_repositories setting. + "../..", + ], visibility = ["//visibility:public"], )