asdf-community / asdf-community/asdf-python

asdf python shell unable to fetch environment variables

Open
#161 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
729
Forks
65
PR merge metrics
No merged PRs in 30d

Description

`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')
>>>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.