Skip to content

Commit 3663c86

Browse files
author
Andrew
committed
Adding loop in run.bat
this allows easy retesting while going through koans
1 parent abc65a0 commit 3663c86

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

python2/run.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ REM Set this to your python folder:
88
SET PYTHON_PATH=C:\Python27
99

1010
set SCRIPT=
11+
12+
:loop
13+
1114
REM Hunt around for python
1215
IF EXIST "python.exe" (
1316
SET SCRIPT=%RUN_KOANS%
@@ -32,4 +35,11 @@ IF NOT "" == "%SCRIPT%" (
3235
echo python.exe contemplate_koans.py
3336
pause
3437
)
38+
39+
Set /p keepgoing="Test again? Y or N - "
40+
if "%keepgoing%" == "y" (
41+
goto loop
42+
)
43+
44+
3545
:end

python3/run.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ REM Set this to your python folder:
88
SET PYTHON_PATH=C:\Python34
99

1010
set SCRIPT=
11+
12+
:loop
13+
1114
REM Hunt around for python
1215
IF EXIST "python.exe" (
1316
SET SCRIPT=%RUN_KOANS%
@@ -32,4 +35,10 @@ IF NOT "" == "%SCRIPT%" (
3235
echo python.exe contemplate_koans.py
3336
pause
3437
)
38+
39+
Set /p keepgoing="Test again? y or n - "
40+
if "%keepgoing%" == "y" (
41+
goto loop
42+
)
43+
3544
:end

0 commit comments

Comments
 (0)