On Feb 3, 12:19 pm, adrian <[email protected]> wrote:
Hi Adrian,
> I have a folder PROGRAMS where I have two files: substitutions.sage
> and morphisms.sage
> The first line in substitutions.sage is
> attach morphisms.sage
>
> This works well if I cd into PROGRAMS and then run sage. This way I
> can do
> sage: attach substitution.sage
>
> and everything works as expected. This is my prefered way to edit
> files (I edit in Emacs, and everything works fine), and I can move the
> directory around.
>
> However, If I want to use the notebook, it uses by default the
> directory ~/.sage, and I don't know of a way to change that.
>
> I tried changing the value of DIR with no success.
> I tried giving the complete path, but it always prepends ~/.sage/ to
> the file morphism.sage.
> Giving the full path in morphism.sage does not work either, since it
> prepends ~/.sage/ to the path.
> I tried changing it using ../../ but this breaks the behavior I want
> to edit files using a text editor and the console.
>
> I guess I can do a symlink into .sage, but I guess there should be a
> nicer solution.
>
> Any ideas?
This sounds like a bug in attach to me, i.e. attach with an absolute
path should not prepend $DOT_SAGE. Should be easy enough to fix.
> Thanks.
>
> -Adrian.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---