Skip to content

Commit 7694447

Browse files
committed
fix run.bat/run.sh, don't write .py[co] files on import.
1 parent 1120f87 commit 7694447

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

python2/run.bat

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
REM This is how you run it from the command line.
44
REM You don't actually need this script!
5-
SET RUN_KOANS=python.exe contemplate_koans.py
5+
SET RUN_KOANS=python.exe -B contemplate_koans.py
66

77
REM Set this to your python folder:
88
SET PYTHON_PATH=C:\Python27
@@ -32,4 +32,4 @@ IF NOT "" == "%SCRIPT%" (
3232
echo python.exe contemplate_koans.py
3333
pause
3434
)
35-
:end
35+
:end

python2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
if [ -x /usr/bin/python2 ]; then
4-
python2 contemplate_koans.py
4+
python2 -B contemplate_koans.py
55
else
6-
python contemplate_koans.py
6+
python -B contemplate_koans.py
77
fi

python3/run.bat

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
REM This is how you run it from the command line.
44
REM You don't actually need this script!
5-
SET RUN_KOANS=python.exe contemplate_koans.py
5+
SET RUN_KOANS=python.exe -B contemplate_koans.py
66

77
REM Set this to your python folder:
8-
SET PYTHON_PATH=C:\Python33
8+
SET PYTHON_PATH=C:\Python34
99

1010
set SCRIPT=
1111
REM Hunt around for python

python3/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

3-
python3 contemplate_koans.py
3+
python3 -B contemplate_koans.py
44

0 commit comments

Comments
 (0)