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:
12
emsdk.bat
12
emsdk.bat
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user