@echo off set "SCRIPT_DIR=%~dp0" where py >nul 2>nul if %ERRORLEVEL%==0 ( set "PYEXE=py" ) else ( where python >nul 2>nul if not %ERRORLEVEL%==0 ( echo python not found. exit /b 1 ) set "PYEXE=python" ) for /f "usebackq delims=" %%L in (`"%PYEXE%" "%SCRIPT_DIR%dev_shell.py" export --shell cmd`) do %%L echo Development shell initialized from Python bootstrap script.