So, in trying to answer my own question, I came up with a hack that
seems to work, but also seems dangerous.

I found this line in SAGE_ROOT/local/bin/sage-env:

if [ -d "$SAGE_ROOT/local/lib/python" ]; then
    PYTHONPATH="$SAGE_PATH:$SAGE_ROOT/local/lib/python"   && export PYTHONPATH

and added one of my own dirs:

if [ -d "$SAGE_ROOT/local/lib/python" ]; then
    PYTHONPATH="$SAGE_PATH:$SAGE_ROOT/local/lib/python:$HOME/git/krauss_misc"
  && export PYTHONPATH


but I am assuming there has to be a better way.

Thanks,

Ryan


On Mon, Jan 24, 2011 at 7:14 PM, Ryan Krauss <ryanwkra...@gmail.com> wrote:
> I am trying to import my personal python modules into a sage script.
> These modules are on my PYTHONPATH, but when I try and load the *.sage
> file within sage, the modules cannot be found.  Is there an
> environment variable or something I need to set?
>
> Thanks,
>
> Ryan
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to