Mercurial > dotfiles
diff install.cmd @ 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 | c6da0c9f40ae |
children | a9011b1b073f |
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 +