Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: fix PYTHONPATH using literal "$DEVENV_PROFILE" #573

Merged
merged 2 commits into from
May 4, 2023

Conversation

bobvanderlinden
Copy link
Contributor

@bobvanderlinden bobvanderlinden commented May 4, 2023

Currently when using python, the PYTHONPATH always contains the literal string $DEVENV_PROFILE. This is incorrect, as the variable is not resolved.

In addition, it would be nice to add to any PYTHONPATH that is already there, just like we're doing with PATH.

I've added a test that fails in the current implementation and succeeds with the patch.

@domenkozar domenkozar merged commit 34ecd62 into cachix:main May 4, 2023
@bobvanderlinden bobvanderlinden deleted the pr-pythonpath-fix branch May 4, 2023 15:17
anoadragon453 referenced this pull request May 7, 2023
This fixes an infinite recursion error that originated as a result of
trying to set an environment variable using the output of another
environment variable.
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.

None yet

2 participants