#7961: Make recognition of runpath/develpath in editmodule more robust
----------------------+-----------------------------------------------------
Reporter: nbruin | Owner: nbruin
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.2
Component: misc | Keywords:
Work_issues: | Author: Nils Bruin
Upstream: N/A | Reviewer:
Merged: |
----------------------+-----------------------------------------------------
Currently, the code that recognizes a source file is part of the sage
library and hence is run from a different location than where the edit
copy lives, is broken due to the python2.5 -> python2.6 upgrade. Attached
fixes this problem and makes matching more robust so that it won't break
the next time. To illustrate the problem, currently we have
{{{
sage: sage.misc.edit_module.file_and_line(edit)
('/usr/local/sage/4.3/local/lib/python2.6/site-
packages/sage/misc/edit_module.py', 194)
}}}
which obviously is NOT the file to edit. It should be
{{{.../sage/devel/...}}} instead. Attached patch fixes this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7961>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.