Skip to content

Commit 9a31c3c

Browse files
Document environment variables behaviour (#44)
1 parent 12ece41 commit 9a31c3c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/pythonx.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ defmodule Pythonx do
4747
4848
For more configuration options, refer to the [uv documentation](https://docs.astral.sh/uv/concepts/projects/dependencies/).
4949
50+
> #### Environment variables {: .info}
51+
>
52+
> Python `os.environ` is initialized using the OS process environment.
53+
> Consequently, it does not account for env vars modified with
54+
> `System.put_env/2` and similar. If you want to mirror certain env
55+
> vars, you need to set them on `os.environ` using `Pythonx.eval/2`.
56+
5057
## Options
5158
5259
* `:force` - if true, runs with empty project cache. Defaults to `false`.

0 commit comments

Comments
 (0)