When activating environment, make sure the new PATH items come first before existing ones.

This commit is contained in:
Jukka Jylanki
2015-04-12 17:52:13 +03:00
parent 42d7b34bb9
commit 3bea227bf9

2
emsdk
View File

@@ -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