diff --git a/emsdk.bat b/emsdk.bat index 179f6e3..695ca0e 100644 --- a/emsdk.bat +++ b/emsdk.bat @@ -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