Fix emsdk.bat string quoting when path contains parentheses, e.g. c:\program files (x86)\
This commit is contained in:
@@ -2,22 +2,22 @@
|
|||||||
|
|
||||||
:: Find python from an explicit location relative to the Emscripten SDK.
|
:: Find python from an explicit location relative to the Emscripten SDK.
|
||||||
@IF EXIST "%~dp0python\2.7.5.3_64bit\python.exe" (
|
@IF EXIST "%~dp0python\2.7.5.3_64bit\python.exe" (
|
||||||
@SET EMSDK_PY=%~dp0python\2.7.5.3_64bit\python.exe
|
@SET EMSDK_PY="%~dp0python\2.7.5.3_64bit\python.exe"
|
||||||
@GOTO end
|
@GOTO end
|
||||||
)
|
)
|
||||||
|
|
||||||
@IF EXIST "%~dp0python\2.7.5.3_32bit\python.exe" (
|
@IF EXIST "%~dp0python\2.7.5.3_32bit\python.exe" (
|
||||||
@SET EMSDK_PY=%~dp0python\2.7.5.3_32bit\python.exe
|
@SET EMSDK_PY="%~dp0python\2.7.5.3_32bit\python.exe"
|
||||||
@GOTO end
|
@GOTO end
|
||||||
)
|
)
|
||||||
|
|
||||||
@IF EXIST "%~dp0python\2.7.5_64bit\python.exe" (
|
@IF EXIST "%~dp0python\2.7.5_64bit\python.exe" (
|
||||||
@SET EMSDK_PY=%~dp0python\2.7.5_64bit\python.exe
|
@SET EMSDK_PY="%~dp0python\2.7.5_64bit\python.exe"
|
||||||
@GOTO end
|
@GOTO end
|
||||||
)
|
)
|
||||||
|
|
||||||
@IF EXIST "%~dp0python\2.7.5.1_32bit\python.exe" (
|
@IF EXIST "%~dp0python\2.7.5.1_32bit\python.exe" (
|
||||||
@SET EMSDK_PY=%~dp0python\2.7.5.1_32bit\python.exe
|
@SET EMSDK_PY="%~dp0python\2.7.5.1_32bit\python.exe"
|
||||||
@GOTO end
|
@GOTO end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user