Find python located inside the Emscripten SDK on Windows when running the 'emsdk' command.

This commit is contained in:
Jukka Jylänki
2013-09-06 20:45:07 +03:00
parent 95b00a1df4
commit 37e59a61b2

View File

@@ -1,2 +1,13 @@
@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" %*
GOTO end
:end