Skip to content

Adds PYTHONSAFEPATH to python_stub_template.txt#15701

Closed
groodt wants to merge 3 commits intobazelbuild:masterfrom
groodt:groodt-pythonsafepath
Closed

Adds PYTHONSAFEPATH to python_stub_template.txt#15701
groodt wants to merge 3 commits intobazelbuild:masterfrom
groodt:groodt-pythonsafepath

Conversation

@groodt
Copy link
Copy Markdown
Contributor

@groodt groodt commented Jun 19, 2022

@sgowroji sgowroji added team-Rules-Python Native rules for Python awaiting-review PR is awaiting review from an assigned reviewer labels Jun 20, 2022
if runfiles_envkey:
new_env[runfiles_envkey] = runfiles_envvalue

# Don't prepend a potentially unsafe path to sys.path
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, i'd recommend also linking to the rules_python issue. The unsafe behavior this is trying to prevent isn't immediately obvious.
(apologies for the drive-by comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Good idea.

@comius comius self-requested a review July 21, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-Python Native rules for Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants