#378: User-specified path for load and attach
------------------------------+---------------------------------------------
Reporter: was | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.3.3
Component: user interface | Keywords:
Author: Mitesh Patel | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Description changed by mpatel:
Old description:
> The attached patch is a first take on
> {{{
> #!python
> sage: load_attach_path()
> ['.']
> sage: load_attach_path('/path/to/my/sage/scripts')
> sage: load_attach_path()
> ['.', '/path/to/my/sage/scripts']
> sage: attach('nifty_script1.sage')
> sage: attached_files()
> ['/path/to/my/sage/scripts/nifty_script1.sage']
> }}}
>
> Please see `sage.misc.preparser.load_attach_path`'s docstring for
> options. You can also set an environment variable:
> {{{
> #!sh
> $ export SAGE_LOAD_ATTACH_PATH="$HOME/foo:$HOME/bar"
> $ sage
> sage: load_attach_path()
> ['.', '/home/mpatel/foo', '/home/mpatel/bar']
> }}}
> Note: We now use the full path in the attached files dictionary.
New description:
The attached patch is a first take on
{{{
#!python
sage: load_attach_path()
['.']
sage: load_attach_path('/path/to/my/sage/scripts')
sage: load_attach_path()
['.', '/path/to/my/sage/scripts']
sage: attach('nifty_script1.sage')
sage: attached_files()
['/path/to/my/sage/scripts/nifty_script1.sage']
}}}
Please see `load_attach_path?` for options. You can also set an
environment variable:
{{{
#!sh
$ export SAGE_LOAD_ATTACH_PATH="$HOME/foo:$HOME/bar"
$ sage
sage: load_attach_path()
['.', '/home/mpatel/foo', '/home/mpatel/bar']
}}}
Note: We now use the full path in the attached files dictionary.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/378#comment:6>
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.