From f3522e6a64848da2cb7d7d0438df954f6f9bee2b 2007-05-28 12:57:35 From: vivainio Date: 2007-05-28 12:57:35 Subject: [PATCH] only set readline startup hook if available --- diff --git a/IPython/iplib.py b/IPython/iplib.py index b2d7578..b4352b4 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -6,7 +6,7 @@ Requires Python 2.3 or newer. This file contains all the classes and helper functions specific to IPython. -$Id: iplib.py 2385 2007-05-24 20:18:08Z vivainio $ +$Id: iplib.py 2404 2007-05-28 12:57:35Z vivainio $ """ #***************************************************************************** @@ -1603,8 +1603,10 @@ want to merge them back into the new files.""" % locals() # Mark activity in the builtins __builtin__.__dict__['__IPYTHON__active'] += 1 + if readline.have_readline: + self.readline_startup_hook(self.pre_readline) # exit_now is set by a call to %Exit or %Quit - self.readline_startup_hook(self.pre_readline) + while not self.exit_now: if more: prompt = self.hooks.generate_prompt(True) diff --git a/exesetup.py b/exesetup.py index 71dc3d4..0746a78 100644 --- a/exesetup.py +++ b/exesetup.py @@ -6,6 +6,11 @@ - install pyreadline *package dir* in ipython root directory by running: +svn co http://ipython.scipy.org/svn/ipython/pyreadline/branches/maintenance_1.3/pyreadline/ +wget http://ipython.scipy.org/svn/ipython/pyreadline/branches/maintenance_1.3/readline.py + +OR (if you want the latest trunk): + svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk/pyreadline - Create the distribution in 'dist' by running "python exesetup.py py2exe"