From 37e59a61b23ef919da968f9f83aef923c176cc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Fri, 6 Sep 2013 20:45:07 +0300 Subject: [PATCH] Find python located inside the Emscripten SDK on Windows when running the 'emsdk' command. --- emsdk.bat | 11 +++++++++++ 1 file changed, 11 insertions(+) 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