Hi, I noticed that when i run a `pex_binary` it is...
# general
a
Hi, I noticed that when i run a
pex_binary
it is loading my
.env
file without any additional configuration, is this the expected behaviour?
b
Do you have a library like
python-dotenv
that’s being invoked inside the PEX? And are you sure that the environment variables aren’t set in your terminal window where you invoke the PEX?
c
https://github.com/pantsbuild/scie-pants/ "The first .env file found in the current directory or any of its parent directories is loaded and exported into Pants (and scie-pants) environment."
🙏 2
😃 1
h
Are you building a PEX and invoking it? Or doing
pants run ...
?
a
Just pants run