#17044: fix pexpect interfaces with a system-wide sage install
--------------------------+----------------------------
   Reporter:  was         |            Owner:
       Type:  defect      |           Status:  new
   Priority:  major       |        Milestone:  sage-6.4
  Component:  interfaces  |         Keywords:
  Merged in:              |          Authors:
  Reviewers:              |  Report Upstream:  N/A
Work issues:              |           Branch:
     Commit:              |     Dependencies:
   Stopgaps:              |
--------------------------+----------------------------
 If you install Sage system-wide (e.g., in /usr/local) for all users on
 your system, most of the pexpect interfaces will be completely massively
 broken.  The bug is big, but the fix is pretty trivial:

 {{{
 diff --git a/src/sage/interfaces/expect.py b/src/sage/interfaces/expect.py
 index 4e47d54..ef8a4e1 100644
 --- a/src/sage/interfaces/expect.py
 +++ b/src/sage/interfaces/expect.py
 @@ -127,7 +127,7 @@ class Expect(Interface):
      """
      def __init__(self, name, prompt, command=None, server=None,
 server_tmpdir=None,
                   ulimit = None, maxread=100000,
 -                 script_subdirectory="", restart_on_ctrlc=False,
 +                 script_subdirectory=None, restart_on_ctrlc=False,
                   verbose_start=False, init_code=[],
 max_startup_time=None,
                   logfile = None, eval_using_file_cutoff=0,
                   do_cleaner=True, remote_cleaner=False, path=None,
 }}}

 The problem is that elsewhere in the code there is an
 {{{
 if script_subdirectory is None
 }}}
 rather than a
 {{{
 if script_subdirectory
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17044>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to