comparison 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
comparison
equal deleted inserted replaced
414:72365ec18f54 415:e57b012539d5
1 @echo off 1 @echo off
2 setlocal 2 setlocal
3 3
4 set CWD=%~dp0 4 set CWD=%~dp0
5 python %CWD%install.py
6 5
6 set PYEXE=python
7 where %PYEXE% 2>nul
8 if errorlevel 1 (
9 echo Python isn't in your PATH. Run the install script yourself.
10 exit /b 1
11 )
12
13 echo python %CWD%install.py
14