Does the directory argument to notebook() do what you want? (See notebook? for more info.)
Nathan On Feb 3, 2009, at 3:19 PM, adrian wrote: > > 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? > > Thanks. > > -Adrian. > > --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---