##// 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 from pyreadline import *
18 from pyreadline import *
19 print "Using the new pyreadline (thanks for participating in the testing!)"
19 print "Using the new pyreadline (thanks for participating in the testing!)"
20 have_readline = True
20 have_readline = True
21 import pyreadline as _rl
21 except ImportError:
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 print "It's superior especially with non-US keyboard layouts."
24 print "It's superior especially with non-US keyboard layouts."
24 print "Try installing it with 'easy_install pyreadline (ctypes is required) or"
25 print "Try installing it with 'easy_install pyreadline (ctypes is required) or"
25 print "svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline"
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 try:
29 try:
29 from readline import *
30 from readline import *
31 import readline as _rl
30 have_readline = True
32 have_readline = True
31 except ImportError:
33 except ImportError:
32 pass
34 pass
33
35
34 if have_readline:
36 if have_readline:
35 try:
37 try:
36 _outputfile=GetOutputFile()
38 _outputfile=_rl.GetOutputFile()
37 except NameError:
39 except NameError:
40 print "Failed GetOutputFile"
38 have_readline = False
41 have_readline = False
39
42
40 else:
43 else:
General Comments 0
You need to be logged in to leave comments. Login now