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=
|
@set EMSDK_PY=
|
||||||
|
|
||||||
:: python is not able to set environment variables to the parent calling process, so
|
:: python is not able to set environment variables to the parent calling
|
||||||
:: therefore have it craft a .bat file, which we invoke after finishing python execution,
|
:: process, so therefore have it craft a .bat file, which we invoke after
|
||||||
:: to set up the environment variables
|
:: finishing python execution, to set up the environment variables
|
||||||
@IF EXIST emsdk_set_env.bat (
|
@IF EXIST "%~dp0\emsdk_set_env.bat" (
|
||||||
@CALL emsdk_set_env.bat > NUL
|
@CALL "%~dp0\emsdk_set_env.bat" > NUL
|
||||||
@DEL /F /Q emsdk_set_env.bat
|
@DEL /F /Q "%~dp0\emsdk_set_env.bat"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user