-
In old school virtual envs, one could add more env vars in to the activate script. PDM doesn't seem to load a .env file when I do, for exacmple, In the PDM world, is there a canonical way to configure the environment using a .env file or something similar? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Never mind. I just found this: https://pdm.fming.dev/usage/project/#environment-variables-support |
Beta Was this translation helpful? Give feedback.
-
I had the same question and came across this discussion. The link @ksze provided seems to be invalid in later releases. I found the link to release 1.8.5 that still has the content. |
Beta Was this translation helpful? Give feedback.
-
related issue: abersheeran/pdm-shell#1 |
Beta Was this translation helpful? Give feedback.
-
for all who are coming here after august 2024.. you can set default env for all pdm run commands using the following snippet
|
Beta Was this translation helpful? Give feedback.
Never mind. I just found this: https://pdm.fming.dev/usage/project/#environment-variables-support