<#2224 I'm missing something: --inject-env isn't i...
# github-notifications
c
#2224 I'm missing something: --inject-env isn't injecting Issue created by erik-at-techsanity When I build a simple pexfile using --inject-env:
(venv) erik@Eriks-MBP /t/unpack> pex --inject-env FOO=BLARG --output-file /tmp/test.pex
It doesn't seem to be present when I start up the repl:
Copy code
(venv) erik@Eriks-MBP /t/unpack> /tmp/test.pex
Python 3.11.4 (v3.11.4:d2340ef257, Jun  6 2023, 19:15:51) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import os
>>> os.environ.get("FOO")
>>> ^D
now exiting InteractiveConsole...
(venv) erik@Eriks-MBP /t/unpack>
But it's present in the PEX-INFO:
Copy code
(venv) erik@Eriks-MBP /t/unpack> cat PEX-INFO | jq .inject_env
{
  "FOO": "BLARG"
}
What am I doing wrong? Thanks for any suggestions. pantsbuild/pex