Skip to content

Unable to set an environment variable #498

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

Closed
andreamoro opened this issue Nov 18, 2024 · 1 comment
Closed

Unable to set an environment variable #498

andreamoro opened this issue Nov 18, 2024 · 1 comment

Comments

@andreamoro
Copy link

Description

On my Mac Sequoia 15.1 (24B83) I've been trying to set an environment variable to run when the Virtual Enviornent is activated.
Although I've edited the /Users/myuser/.pyenv/versions/3.12.1/venvs/activate file by adding a export myvariable="path/with/slashes/and with spaces" at the very next pyenv activation, the variable results empty, like the file is not executed.

As a counterproof I've edited the right file, I've renamed the activate into something different to obviously get an error message.

What is that I'm doing wrong?

@native-api native-api transferred this issue from pyenv/pyenv Dec 24, 2024
@native-api
Copy link
Member

Duplcate of #263

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

No branches or pull requests

2 participants