Closed palunel closed 1 week ago
The issue is not Pytdantic-related, but the visibility of environment variables and the respective processes in which they are created. A variable created via export
in a shell is only available to that shell and any subprocess spawned from that shell. It needs to be persisted through adding to ~/.zshrc
or similar before being available to other processes.
I have the following
with a
.test.env
file that looks like this:and I set an OS environment variable as follows:
giving the following response with
printenv
:and then get the following output:
My understanding is that the OS environment variable will take precedence but I am not seeing it here?