Skip to content

Commit

Permalink
Change to Bazel integration test to allow use of runfiles.py.
Browse files Browse the repository at this point in the history
This is in preparation for PR 21882 which uses runfiles in a Python test.

PiperOrigin-RevId: 633936625
Change-Id: Icdb93bba4f35bb6d9036e8a56351f3f1cf507743
  • Loading branch information
pzembrod authored and copybara-github committed May 15, 2024
1 parent 11492a4 commit 0c60c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/python/runfiles/runfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def Create(env=None):
return CreateManifestBased(manifest)

directory = env_map.get("RUNFILES_DIR")
if not directory:
directory = env_map.get("PYTHON_RUNFILES")
if directory:
return CreateDirectoryBased(directory)

Expand Down

0 comments on commit 0c60c38

Please sign in to comment.