Skip to content

Commit 9b45103

Browse files
committed
Updated startup scripts to look for python 2.7 or 3.2
1 parent 9925648 commit 9b45103

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

python2/contemplate_koans.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
"Did you accidentally use the wrong python script? \nTry:\n\n" +
2222
" python contemplate_koans.py\n")
2323
else:
24-
if sys.version_info < (2, 6):
24+
if sys.version_info < (2, 7):
2525
print("\n" +
2626
"********************************************************\n" +
2727
"WARNING:\n" +
2828
"This version of Python Koans was designed for " +
29-
"Python 2.6 or greater.\n" +
30-
"Your version of Python is older, so this is unlikely " +
31-
"to work!\n\n" +
29+
"Python 2.7 or greater.\n" +
30+
"Your version of Python is older, so you may run into " +
31+
"problems!\n\n" +
3232
"But lets see how far we get...\n" +
3333
"********************************************************\n")
3434

python2/run.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ REM You don't actually need this script!
55
SET RUN_KOANS=python.exe contemplate_koans.py
66

77
REM Set this to your python folder:
8-
SET PYTHON_PATH=C:\Python26
9-
10-
8+
SET PYTHON_PATH=C:\Python27
119

1210
set SCRIPT=
1311
REM Hunt around for python

python3/contemplate_koans.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,21 @@
1616
if __name__ == '__main__':
1717
if sys.version_info < (3, 0):
1818
print("\nThis is the Python 3 version of Python Koans, but you are " +
19-
"running it with Python 2 or older!\n\n"
19+
"running it with Python 2!\n\n"
2020
"Did you accidentally use the wrong python script? \nTry:\n\n" +
2121
" python3 contemplate_koans.py\n")
2222
else:
23+
if sys.version_info < (3, 3):
24+
print("\n" +
25+
"********************************************************\n" +
26+
"WARNING:\n" +
27+
"This version of Python Koans was designed for " +
28+
"Python 3.3 or greater.\n" +
29+
"Your version of Python is older, so you may run into " +
30+
"problems!\n\n" +
31+
"But lets see how far we get...\n" +
32+
"********************************************************\n")
33+
2334
from runner.mountain import Mountain
2435

2536
Mountain().walk_the_path(sys.argv)

python3/run.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ REM You don't actually need this script!
55
SET RUN_KOANS=python.exe contemplate_koans.py
66

77
REM Set this to your python folder:
8-
SET PYTHON_PATH=C:\Python31
9-
10-
8+
SET PYTHON_PATH=C:\Python33
119

1210
set SCRIPT=
1311
REM Hunt around for python

0 commit comments

Comments
 (0)