···1diff --git a/SConstruct b/SConstruct
2+index d138c7b250..c925bf908e 100644
3--- a/SConstruct
4+++ b/SConstruct
5+@@ -65,10 +65,10 @@ elif platform_arg == "javascript":
6+ # want to have to pull in manually.
7+ # Then we prepend PATH to make it take precedence, while preserving SCons' own entries.
8 env_base = Environment(tools=custom_tools)
9+-env_base.PrependENVPath("PATH", os.getenv("PATH"))
10+-env_base.PrependENVPath("PKG_CONFIG_PATH", os.getenv("PKG_CONFIG_PATH"))
11+-if "TERM" in os.environ: # Used for colored output.
12- env_base["ENV"]["TERM"] = os.environ["TERM"]
0013+for k in ("TERM", "PATH", "PKG_CONFIG_PATH"):
14+ if (k in os.environ):
15+ env_base["ENV"][k] = os.environ[k]
16++
17+18 env_base.disabled_modules = []
19 env_base.use_ptrcall = False
0