Mercurial > dotfiles
changeset 415:e57b012539d5
Check if Python is in the `PATH` on Windows.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 19 Jan 2018 09:18:30 -0800 |
parents | 72365ec18f54 |
children | 222b477ad678 |
files | install.cmd |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 +