Hi Georg,

On Wed, 30 Sep 2009 11:07:11 -0700 (PDT)
ggrafendorfer <georg.grafendor...@gmail.com> wrote:

> I would like to import my own library (which for example resides in ~/
> mytools/) to the sage-python (respectively sage) environment.
> 
> Normally (for system python) one adds '~/mytools' to the PYTHONPATH
> environment variable, but for sage-python this does not work.
> 
> What's the easiest way, to make sage-python aware of this?  If
> possible, such that it keeps on working even after a new installation
> of sage.

Try using the SAGE_PATH variable in the same way as PYTHONPATH. You can
also try adding a line to change sys.path in your init.sage file.

Cheers,
Burcin

--~--~---------~--~----~------------~-------~--~----~
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