Zachary Ware | 6b6e687 | 2017-06-10 14:58:42 -0500 | [diff] [blame] | 1 | @echo off |
| 2 | rem start idle |
| 3 | rem Usage: idle [-d] |
| 4 | rem -d Run Debug build (python_d.exe). Else release build. |
| 5 | |
| 6 | setlocal |
Steve Dower | 2156d96 | 2020-11-18 17:24:36 +0000 | [diff] [blame] | 7 | set PCBUILD=%~dp0 |
| 8 | set exedir=%PCBUILD%\amd64 |
| 9 | set exe=python |
Zachary Ware | 6b6e687 | 2017-06-10 14:58:42 -0500 | [diff] [blame] | 10 | PATH %PATH%;..\externals\tcltk\bin |
| 11 | |
Steve Dower | 2156d96 | 2020-11-18 17:24:36 +0000 | [diff] [blame] | 12 | :CheckOpts |
| 13 | if "%1"=="-d" (set exe=%exe%_d) & shift & goto :CheckOpts |
| 14 | if "%1"=="-p" (call :SetExeDir %2) & shift & shift & goto :CheckOpts |
Zachary Ware | 6b6e687 | 2017-06-10 14:58:42 -0500 | [diff] [blame] | 15 | |
Steve Dower | 2156d96 | 2020-11-18 17:24:36 +0000 | [diff] [blame] | 16 | set cmd=%exedir%\%exe% %PCBUILD%\..\Lib\idlelib\idle.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
Zachary Ware | 6b6e687 | 2017-06-10 14:58:42 -0500 | [diff] [blame] | 17 | |
| 18 | echo on |
| 19 | %cmd% |
Steve Dower | 2156d96 | 2020-11-18 17:24:36 +0000 | [diff] [blame] | 20 | exit /B %LASTERRORCODE% |
| 21 | |
| 22 | :SetExeDir |
| 23 | if /I %1 EQU Win32 (set exedir=%PCBUILD%\win32) |
| 24 | if /I %1 EQU x64 (set exedir=%PCBUILD%\amd64) |
| 25 | if /I %1 EQU ARM (set exedir=%PCBUILD%\arm32) |
| 26 | if /I %1 EQU ARM64 (set exedir=%PCBUILD%\arm64) |
| 27 | exit /B 0 |