##// END OF EJS Templates
Made 'old' readline work again (GetOutpuFile was not exported ...
vivainio -
Show More
@@ -18,8 +18,9 b" if sys.platform == 'win32':"
18 18 from pyreadline import *
19 19 print "Using the new pyreadline (thanks for participating in the testing!)"
20 20 have_readline = True
21 import pyreadline as _rl
21 22 except ImportError:
22 print "The IPython team recommends the new pyreadline for Windows use, it wasn't found."
23 print "IPython team recommends the new pyreadline for Windows use, it wasn't found."
23 24 print "It's superior especially with non-US keyboard layouts."
24 25 print "Try installing it with 'easy_install pyreadline (ctypes is required) or"
25 26 print "svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline"
@@ -27,14 +28,16 b" if sys.platform == 'win32':"
27 28
28 29 try:
29 30 from readline import *
31 import readline as _rl
30 32 have_readline = True
31 33 except ImportError:
32 34 pass
33 35
34 36 if have_readline:
35 37 try:
36 _outputfile=GetOutputFile()
38 _outputfile=_rl.GetOutputFile()
37 39 except NameError:
40 print "Failed GetOutputFile"
38 41 have_readline = False
39 42
40 43 else:
General Comments 0
You need to be logged in to leave comments. Login now