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

asdf python shell unable to fetch environment variables #161

Open
codingCoffee opened this issue May 22, 2023 · 0 comments
Open

asdf python shell unable to fetch environment variables #161

codingCoffee opened this issue May 22, 2023 · 0 comments

Comments

@codingCoffee
Copy link

python scripts are unable to pick up environment variables. I'm not sure if this is expected or a bug. But wanted to know if there is a way to work around this?

➜ echo $MY_VAR
/Users/cc/.pkb/personal/Books.org

➜ which python
/Users/cc/.asdf/shims/python

➜ python
Python 3.11.3 (main, May  8 2023, 20:50:37) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os import environ
>>> environ.get('MY_VAR')
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant