#9452: strip_automount_prefix() is useless
----------------------------+-----------------------------------------------
Reporter: rlm | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.5
Component: distribution | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
> We wrote the strip_automount_prefix() function for
> sage-test to get around problems with automounted
> file system having wierd mount points.
> Unfotunately the strip_automount_prefix() does not
> work at all!
>
> Here is a patch:
>
> % diff sage-test.old sage-test.new
> 20c20
> < return strip_automount_prefix(os.path.abspath(x))
> ---
>> return os.path.abspath(x)
> 57c57
> < f = g[len(SAGE_ROOT)+1:]
> ---
>> f = g[g.find(SAGE_ROOT)+len(SAGE_ROOT)+1:]
> %
>
> You can remove - or deprecate - the function strip_automount_prefix().
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9452>
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.