#13432: add sage/env.py and fix many inappropriate references to SAGE_ROOT
-----------------------------------+----------------------------------------
       Reporter:  rohana           |         Owner:  jason          
           Type:  task             |        Status:  needs_work     
       Priority:  major            |     Milestone:  sage-5.9       
      Component:  misc             |    Resolution:                 
       Keywords:                   |   Work issues:                 
Report Upstream:  N/A              |     Reviewers:  François Bissey
        Authors:  R. Andrew Ohana  |     Merged in:                 
   Dependencies:  #13123, #13348   |      Stopgaps:                 
-----------------------------------+----------------------------------------

Comment (by fbissey):

 Replying to [comment:30 jdemeyer]:
 > In `sage/interfaces/expect.py`, this usage of `DOT_SAGE` needs to be
 fixed:
 > {{{
 >         #If the 'SAGE_PEXPECT_LOG' environment variable is set and
 >         #the current logfile is None, then set the logfile to be one
 >         #in .sage/pexpect_logs/
 >         if self.__logfile is None and 'SAGE_PEXPECT_LOG' in os.environ:
 >             from sage.misc.all import DOT_SAGE
 >             logs = '%s/pexpect_logs'%DOT_SAGE
 >             sage_makedirs(logs)
 >
 >             filename = '%s/%s-%s-%s-%s.log'%(logs, self.name(),
 os.getpid(), id(self), self._session_number)
 >             self.__logfile = open(filename, 'w')
 > }}}

 That shouldn't be necessary to build or run sage and is covered by
 backward compatibility in sage/misc/misc.py but OK will fix it.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13432#comment:31>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to