When activating environment, make sure the new PATH items come first before existing ones.
This commit is contained in:
2
emsdk
2
emsdk
@@ -1224,7 +1224,7 @@ def adjusted_path(tools_to_activate, log_additions=False):
|
||||
# Existing non-emsdk tools
|
||||
existing_path = [item for item in existing_path if not to_unix_path(item).startswith(emsdk_root_path)]
|
||||
new_path = [item for item in path_add if not normalized_contains(existing_path, item)]
|
||||
return (ENVPATH_SEPARATOR.join(unique_items(existing_path + new_path)), new_emsdk_tools)
|
||||
return (ENVPATH_SEPARATOR.join(unique_items(new_path + existing_path)), new_emsdk_tools)
|
||||
|
||||
def construct_env_windows(tools_to_activate, permanent):
|
||||
global emscripten_config_directory
|
||||
|
||||
Reference in New Issue
Block a user