Skip to content

fix: support runfiles.CurrentRepository with non-hermetic sys.path#1634

Merged
rickeylev merged 4 commits intobazel-contrib:mainfrom
fmeum:1631-fix-runfiles-lookup
Aug 15, 2024
Merged

fix: support runfiles.CurrentRepository with non-hermetic sys.path#1634
rickeylev merged 4 commits intobazel-contrib:mainfrom
fmeum:1631-fix-runfiles-lookup

Conversation

@fmeum
Copy link
Member

@fmeum fmeum commented Dec 19, 2023

When using Python 3.10 or earlier, the first sys.path entry is the directory containing the script. This can result in modules being loaded from the source root rather than the runfiles root, which the runfiles library previously didn't support.

Fixes #1631

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bazel-runfiles module always throws ValueError

5 participants