Hello
The issue was already discussed, but I did not found definitive
answers with my friend (google).
I extracted the archive
sage-3.4.1-linux-Ubuntu_8.10-sse2-i686-Linux.tar.gz
in $HOME/Sage
Well. Now I want to use Sage and some personal modules in the same time
in a python script.
Here are my issues
1. the first line of my script is #! /usr/bin/sage -python wich
obviously not works. I can create a symbolic link to fix it. Any better
idea ?
2. I was programming in python well before to know Sage. So in .bashrc,
I have export PYTHONPATH=$HOME/script/modules
The problem is that Sage do not agree with that and don't found my
personal modules.
3. I try to fix the second problem by adding the following in .bashrc :
export SAGE_PATH=$PYTHONPATH
source $HOME/Sage/sage-env
Now, my older scripts complain because /usr/bin/python has some trouble
with modules inside the tree of $HOME/Sage.
How can I fit it all together to have something working correctly ?
I could move my personal module directory inside the Sage tree, and set
PYTHONPATH in order to point to that new directory. In that case, I
suppose that Sage and python will accept.
Have a afternoon
Laurent
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---