1@echo off 2if defined MSYSTEM ( 3 echo This .bat file is for Windows CMD.EXE shell only. When using MSYS, run: 4 echo ./install.sh. 5 goto end 6) 7:: Infer IDF_PATH from script location 8set IDF_PATH=%~dp0 9set IDF_PATH=%IDF_PATH:~0,-1% 10 11echo Installing ESP-IDF tools 12python.exe %IDF_PATH%\tools\idf_tools.py install 13if %errorlevel% neq 0 goto :end 14 15echo Setting up Python environment 16python.exe %IDF_PATH%\tools\idf_tools.py install-python-env 17if %errorlevel% neq 0 goto :end 18 19echo All done! You can now run: 20echo export.bat 21 22:end 23