Hi

Try preserve the old path:
export SAGE_PATH=$SAGE_PATH:/path/to/dir1/:/path/to/dir2

Regards,
Jan


On 8 March 2013 17:54, tvn <[email protected]> wrote:

> I'd like to import some f.py g,py files in  separate directories
> /path/to/dir1 , path/to/dir2  to SAGE so that I can do "import f"  and
> "import g" from the SAGE prompt.
>
> One way to do that is setting the variable
>  SAGE_PATH=/path/to/dir1/:/path/to/dir2   in ~/.bash_profile.  However
> doing that will cause problem when I want to read the document of any
> function in SAGE.  For example,
>
> sage: solve??
> ImportError                               Traceback (most recent call last)
> ....
> ImportError: No module named conf
>
>
> So my question is how to properly adding external directories to SAGE ?
>
>
>
>
> I've posted a similar question 4 months ago but doesn't received a
> satisfiable answer here
> https://groups.google.com/forum/?fromgroups=#!searchin/sage-support/SAGE_PATH/sage-support/Bm1vetO7atw/HjXe1tq1YUUJ.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" 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-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" 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-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to