summaryrefslogtreecommitdiff
path: root/PCbuild/rt.bat
diff options
context:
space:
mode:
Diffstat (limited to 'PCbuild/rt.bat')
-rw-r--r--PCbuild/rt.bat14
1 files changed, 7 insertions, 7 deletions
diff --git a/PCbuild/rt.bat b/PCbuild/rt.bat
index 13c9d62939..2d93b80a49 100644
--- a/PCbuild/rt.bat
+++ b/PCbuild/rt.bat
@@ -28,25 +28,25 @@ rem rt -u "network,largefile"
setlocal
set pcbuild=%~dp0
-set prefix=%pcbuild%
+set prefix=%pcbuild%win32\
set suffix=
set qmode=
set dashO=
-set tcltk=tcltk
+set regrtestargs=
:CheckOpts
if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts
if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts
if "%1"=="-d" (set suffix=_d) & shift & goto CheckOpts
-if "%1"=="-x64" (set prefix=%prefix%amd64) & (set tcltk=tcltk64) & shift & goto CheckOpts
+if "%1"=="-x64" (set prefix=%pcbuild%amd64\) & shift & goto CheckOpts
+if NOT "%1"=="" (set regrtestargs=%regrtestargs% %1) & shift & goto CheckOpts
-PATH %PATH%;%pcbuild%..\externals\%tcltk%\bin
-set exe="%prefix%\python%suffix%"
-set cmd=%exe% %dashO% -Wd -E -bb "%pcbuild%..\lib\test\regrtest.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
+set exe=%prefix%python%suffix%.exe
+set cmd="%exe%" %dashO% -Wd -E -bb "%pcbuild%..\lib\test\regrtest.py" %regrtestargs%
if defined qmode goto Qmode
echo Deleting .pyc/.pyo files ...
-%exe% "%pcbuild%\rmpyc.py"
+"%exe%" "%pcbuild%rmpyc.py"
echo on
%cmd%