`run(cmd)` does not use my shell

question

#1

I’m struggling to call a python script from julia. I am using https://github.com/pyenv/pyenv for multiple python versions, but for that to work my shell needs to be /bin/zsh and it needs to use my login shell (i.e. it needs to source ~/.zshrc to set the PATH). how can I achieve that this is loaded when I do run(cmd)?

thanks


#2

run(cmd) does not use a shell at all: it directly forks the executable.

If you need to run a shell, you can do it explicitly, via

run(`zsh -c "some command"`)

#3

awesome! thanks!