Sublime Text has a shell_environment config that launches shell and gets the environment variables.
Is it possible to get access to this data via some plugin API?
Sublime Text has a shell_environment config that launches shell and gets the environment variables.
Is it possible to get access to this data via some plugin API?
The environment is set for plugins, so the standard os.environ in python would be how you access it.
I just check $PATH before posting, and import os; os.environ['PATH']; in Sublime’s console was smaller than running the shell_environment command and echo $PATH, so I assumed it was diferent, but I guess some shell configs are to blame
ST queries the environment from a login shell, so it won’t run all the same scripts as a terminal would.
Thanks, I’ve run the fish -l command in the terminal, so it was the same login, but then there is also another interactive check, which explains the difference