@echo off REM This is how you run it from the command line. REM You don't actually need this script! SET RUN_KOANS=python.exe -B contemplate_koans.py REM Set this to your python folder: SET PYTHON_PATH=C:\Python27 set SCRIPT= :loop REM Hunt around for python IF EXIST "python.exe" ( SET SCRIPT=%RUN_KOANS% ) ELSE ( IF EXIST "%PYTHON_PATH%" ( SET SCRIPT=%PYTHON_PATH%\%RUN_KOANS% ) ELSE ( IF EXIST %PYTHON% SET SCRIPT=%