chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import os
import runfiles
REPO_NAME = "io_ray"
_LEGACY_REPO_ROOT = os.path.abspath(
os.path.join(os.path.dirname(__file__), "../.."),
)
the_runfiles = runfiles.Create()
def _norm_path_join(*args):
return os.path.normpath(os.path.join(*args))
def bazel_runfile(*args):
"""Return the path to a runfile in the release directory."""
p = _norm_path_join(*args)
if the_runfiles:
f = the_runfiles.Rlocation(os.path.join(REPO_NAME, p))
if f:
return f
return os.path.join(_LEGACY_REPO_ROOT, p)