diff --git a/emsdk b/emsdk index 13011c8..cf5290c 100755 --- a/emsdk +++ b/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