Improve support for registering environment variables and PATH on 'emsdk activate'. Add machinery for hiding old sdk tools and sdks.

This commit is contained in:
Jukka Jylänki
2014-04-24 13:10:04 +03:00
parent 2ed7a605a9
commit 13ea503a7f
3 changed files with 65 additions and 32 deletions

View File

@@ -30,3 +30,11 @@
@set EMSDK_PY=
@set PATH=%PREVPATH%
@set PREVPATH=
:: python is not able to set environment variables to the parent calling process, so
:: therefore have it craft a .bat file, which we invoke after finishing python execution,
:: to set up the environment variables
@IF EXIST emsdk_set_env.bat (
@CALL emsdk_set_env.bat > NUL
@DEL /F /Q emsdk_set_env.bat
)