blob: 70f3817f09769c5de4698fa730143e0c15fbb4e7 [file] [log] [blame]
Zachary Ware6b6e6872017-06-10 14:58:42 -05001@echo off
2rem start idle
3rem Usage: idle [-d]
4rem -d Run Debug build (python_d.exe). Else release build.
5
6setlocal
Steve Dower2156d962020-11-18 17:24:36 +00007set PCBUILD=%~dp0
8set exedir=%PCBUILD%\amd64
9set exe=python
Zachary Ware6b6e6872017-06-10 14:58:42 -050010PATH %PATH%;..\externals\tcltk\bin
11
Steve Dower2156d962020-11-18 17:24:36 +000012:CheckOpts
13if "%1"=="-d" (set exe=%exe%_d) & shift & goto :CheckOpts
14if "%1"=="-p" (call :SetExeDir %2) & shift & shift & goto :CheckOpts
Zachary Ware6b6e6872017-06-10 14:58:42 -050015
Steve Dower2156d962020-11-18 17:24:36 +000016set cmd=%exedir%\%exe% %PCBUILD%\..\Lib\idlelib\idle.py %1 %2 %3 %4 %5 %6 %7 %8 %9
Zachary Ware6b6e6872017-06-10 14:58:42 -050017
18echo on
19%cmd%
Steve Dower2156d962020-11-18 17:24:36 +000020exit /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