Avoid adding our java or python to the PATH (#706)

For Java we use the value in the config file so it doesn't need to be in
the PATH.

For python, all our tools should launch via scripts that check for
EMSDK_PYTHON so having python in the PATH for emsdk users should not be
needed.

The motivation for this is that we don't want to clobber any existing
python or java versions that users might already have in their PATH.

This is the easy part of #705.
This commit is contained in:
Sam Clegg
2021-02-15 13:46:54 -08:00
committed by GitHub
parent 2b720e5473
commit 57ebbbdabc
2 changed files with 0 additions and 17 deletions

View File

@@ -65,14 +65,6 @@ try {
if (!$EMSDK_NODE_Path) {
throw "$repo_root\\node is not added to path."
}
$EMSDK_PYTHON_Path = $path_split | Where-Object { $_ -like "$repo_root\python*" }
if (!$EMSDK_PYTHON_Path) {
throw "$repo_root\\python is not added to path."
}
$EMSDK_JAVA_Path = $path_split | Where-Object { $_ -like "$repo_root\java*" }
if (!$EMSDK_JAVA_Path) {
throw "$repo_root\\java is not added to path."
}
$EMSDK_UPSTREAM_Path = $path_split | Where-Object { $_ -like "$repo_root\upstream\emscripten*" }
if (!$EMSDK_UPSTREAM_Path) {