Environment seems to be ignored for bash
Opened this issue · 1 comments
bwagner commented
Environment seems to be ignored for bash
Even though myscript.py
resides in a directory mentioned in my $PATH
, this fails:
```run-python
myscript.py
```
with:
/var/folders/9d/gzvk28s1791cqk4jtlpmc7400000gr/T/temp_1705142769024.sh: line 6: myscript.py: command not found
It appears my environment is ignored ($PATH
in particular). Trying this:
```run-python
/abs/path/to/myscript.py
```
fails with:
env: python: No such file or directory
next, sourcing environment explicitly:
```run-python
source ~/.bash_profile
myscript.py
```
fails with:
env: python: No such file or directory
So, my script is found, but env doesn't find python.
Last attempt
```run-python
/abs/path/to/python /abs/path/to/myscript.py
```
is the only option that worked.
Configuration
- Python 3.12.1
- macOS 14.2.1 (Sonoma)
- Obsidian 1.5.3 (Installer 1.5.3)
MohanL commented