On Mon, 25 Apr 2011 10:11:57 -0700 (PDT)
tvn <[email protected]> wrote:

> just want to pump the thread up so that someone can answer  
> 
> My file f1.py imports some other file  f2.py  which is in the same 
> directory,  when I do sage -t f1.py  I receive ImportError exception
> about f2 not found.  what can I do about this ?  Thanks , 

Before you run the tests, do

export SAGE_PATH=`pwd`

from the directory with the .py files. The SAGE_PATH variable is
appended to the PYTHONPATH [1] in the Sage environment. This puts your
files in Python's module search path.

[1] http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH


Cheers,
Burcin

-- 
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-support
URL: http://www.sagemath.org

Reply via email to