modified pythonrc to make python version clear

This commit is contained in:
hellerve
2015-08-07 20:36:45 +02:00
parent 7a765ca0ff
commit 4ce8ee31ad

View File

@@ -15,4 +15,12 @@ def write_history(readline=readline, histfile=histfile):
pass pass
atexit.register(write_history) atexit.register(write_history)
if sys.version_info.major == 3:
sys.ps1 = "3>>> "
sys.ps2 = "3... "
else:
sys.ps1 = "2>>> "
sys.ps2 = "2... "
del readline, histfile, atexit, write_history, sys, os del readline, histfile, atexit, write_history, sys, os