Update location emsdk_set_env.bat in emsdk.bat (#553)

The location of this file is now fixed to living inside the
emsdk directory, not the current working directory.
This commit is contained in:
Sam Clegg
2020-07-14 17:32:47 -07:00
committed by GitHub
parent d4383f4767
commit e5f63be5a4

View File

@@ -42,10 +42,10 @@
@set EMSDK_PY=
:: 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
:: 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 "%~dp0\emsdk_set_env.bat" (
@CALL "%~dp0\emsdk_set_env.bat" > NUL
@DEL /F /Q "%~dp0\emsdk_set_env.bat"
)