faint-waitress-55925
10/05/2022, 11:21 AM./pants run
but I don't find a way to pass environment variables in the subprocess. Does anyone have a recommendation for that?bumpy-noon-80834
10/05/2022, 11:24 AMFOO=bar ./pants run
faint-waitress-55925
10/05/2022, 11:35 AM.env
or something else)?bumpy-noon-80834
10/05/2022, 11:37 AM.env
files. It's the dotenv library's job. You can use it in your code directly.faint-waitress-55925
10/05/2022, 11:41 AM.env
file my root folder (as a file
target), and declared it as a dependency for each PEX binary. Then I used python-dotenv
package to load these environments variables. Problem: It doesn't work with a file
target when using a PEX binary, and I don't want to declare it as a resource
because I don't want to package the secrets in it.bumpy-noon-80834
10/05/2022, 11:47 AM.env
files shouldn't even be versionedbumpy-noon-80834
10/05/2022, 11:47 AMfaint-waitress-55925
10/05/2022, 12:18 PMcold-vr-15232
05/26/2023, 6:42 PM