Replies: 1 comment
-
Hi @wiraki! First of all, thanks for submitting issue and for using the plugin :3 If I understood your question correctly you're looking for something like this # .env
PATH=${PATH}:HELLO_FRIEND # example.py
import os
print(os.environ["PATH"]) poetry run -vvv python example.py which will result into (you can see that "HELLO_FRIEND" was appended into Using virtualenv: /Users/volodymyr.pivoshenko/anaconda3/envs/eu-games-recommender-v2
Loading environment variables from '/Users/volodymyr.pivoshenko/Development/eu/eu-games-recommender-v2/.env'.
/Users/volodymyr.pivoshenko/anaconda3/envs/eu-games-recommender-v2/bin:/Users/volodymyr.pivoshenko/anaconda3/envs/eu-games-recommender-v2/bin:/Users/volodymyr.pivoshenko/anaconda3/condabin:/Users/volodymyr.pivoshenko/.rbenv/shims:/Users/volodymyr.pivoshenko/.cargo/bin:/opt/homebrew/Cellar/zplug/2.4.2/bin:/opt/homebrew/opt/zplug/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/volodymyr.pivoshenko/Library/Application Support/JetBrains/Toolbox/scripts:/Users/volodymyr.pivoshenko/.spicetify:/opt/homebrew/opt/fzf/bin:HELLO_FRIEND Plugin supports templates, interpolating variables using POSIX variable expansions, so you can play around with it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is is possible to actually modify the PATH variable in the .env file, so that a specific path is added in front of the PATH when the poetry env in activated?
If not, do you have an idea on how I can achieve that?
Beta Was this translation helpful? Give feedback.
All reactions