https://pantsbuild.org/ logo
#development
Title
# development
w

witty-crayon-22786

03/05/2021, 6:13 PM
@hundreds-father-404: now thinking this syntax instead for the inheritance:
Copy code
-            [f"--ca-certs-path={certs_file}"], env={"PATH": None, "PYENV_ROOT": None, "HOME": None}
+            [f"--ca-certs-path={certs_file}"], env_inherit={"PATH", "PYENV_ROOT", "HOME"},
Copy code
+        env = {
+            **{k: os.environ[k] for k in env_inherit if k in os.environ},
+            **(env else {}),
+        }
h

hundreds-father-404

03/05/2021, 6:18 PM
Oh yeah, that's more explicit. And I like
env
overriding
env_inherit
👍 1