2017-06-10 19:58:42 +00:00
|
|
|
@echo off
|
|
|
|
rem start idle
|
|
|
|
rem Usage: idle [-d]
|
|
|
|
rem -d Run Debug build (python_d.exe). Else release build.
|
|
|
|
|
|
|
|
setlocal
|
2020-11-18 17:24:36 +00:00
|
|
|
set PCBUILD=%~dp0
|
|
|
|
set exedir=%PCBUILD%\amd64
|
|
|
|
set exe=python
|
2017-06-10 19:58:42 +00:00
|
|
|
PATH %PATH%;..\externals\tcltk\bin
|
|
|
|
|
2020-11-18 17:24:36 +00:00
|
|
|
:CheckOpts
|
|
|
|
if "%1"=="-d" (set exe=%exe%_d) & shift & goto :CheckOpts
|
|
|
|
if "%1"=="-p" (call :SetExeDir %2) & shift & shift & goto :CheckOpts
|
2017-06-10 19:58:42 +00:00
|
|
|
|
2020-11-18 17:24:36 +00:00
|
|
|
set cmd=%exedir%\%exe% %PCBUILD%\..\Lib\idlelib\idle.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2017-06-10 19:58:42 +00:00
|
|
|
|
|
|
|
echo on
|
|
|
|
%cmd%
|
2020-11-18 17:24:36 +00:00
|
|
|
exit /B %LASTERRORCODE%
|
|
|
|
|
|
|
|
:SetExeDir
|
|
|
|
if /I %1 EQU Win32 (set exedir=%PCBUILD%\win32)
|
|
|
|
if /I %1 EQU x64 (set exedir=%PCBUILD%\amd64)
|
|
|
|
if /I %1 EQU ARM (set exedir=%PCBUILD%\arm32)
|
|
|
|
if /I %1 EQU ARM64 (set exedir=%PCBUILD%\arm64)
|
|
|
|
exit /B 0
|