Fix permanently_activate -> arg_global.

This commit is contained in:
Jukka Jylänki
2018-01-04 20:19:39 +02:00
parent 6ca9d525c2
commit 359b72dbb5

4
emsdk
View File

@@ -2263,8 +2263,8 @@ def main():
print("Error: No tool or SDK found by name '" + sys.argv[i] + "'.")
return 1
tools_to_activate += [tool]
tools_to_activate = set_active_tools(tools_to_activate, permanently_activate=permanently_activate)
if WINDOWS and not permanently_activate:
tools_to_activate = set_active_tools(tools_to_activate, permanently_activate=arg_global)
if WINDOWS and not arg_global:
print('The changes made to environment variables only apply to the currently running shell instance. Use the \'emsdk_env.bat\' to re-enter this environment later, or if you\'d like to permanently register this environment globally to all users in Windows Registry, rerun this command with the option --global.')
return 0
elif cmd == 'install':