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