From 3bea227bf9760f78f4ec4122313bf615042f3dba Mon Sep 17 00:00:00 2001 From: Jukka Jylanki Date: Sun, 12 Apr 2015 17:52:13 +0300 Subject: [PATCH] When activating environment, make sure the new PATH items come first before existing ones. --- emsdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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