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.