Find python located inside the Emscripten SDK on Windows when running the 'emsdk' command.
This commit is contained in:
11
emsdk.bat
11
emsdk.bat
@@ -1,2 +1,13 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
:: Find python from an explicit location relative to the Emscripten SDK.
|
||||||
|
IF EXIST "%~dp0python\2.7.5.1_32bit\python" (
|
||||||
|
"%~dp0python\2.7.5.1_32bit\python" "%~dp0\emsdk" %*
|
||||||
|
GOTO end
|
||||||
|
)
|
||||||
|
|
||||||
|
:: As last resort, access from PATH.
|
||||||
python "%~dp0\emsdk" %*
|
python "%~dp0\emsdk" %*
|
||||||
|
GOTO end
|
||||||
|
|
||||||
|
:end
|
||||||
|
|||||||
Reference in New Issue
Block a user