# HG changeset patch # User Ludovic Chabant # Date 1516382310 28800 # Node ID e57b012539d5f5c1f3b08bd402a081e4bf648f1a # Parent 72365ec18f549be401573e77e15a208e9917cdbc Check if Python is in the `PATH` on Windows. diff -r 72365ec18f54 -r e57b012539d5 install.cmd --- a/install.cmd Thu Jan 18 16:27:32 2018 -0800 +++ b/install.cmd Fri Jan 19 09:18:30 2018 -0800 @@ -2,5 +2,13 @@ setlocal set CWD=%~dp0 -python %CWD%install.py +set PYEXE=python +where %PYEXE% 2>nul +if errorlevel 1 ( + echo Python isn't in your PATH. Run the install script yourself. + exit /b 1 +) + +echo python %CWD%install.py +