On Sat, Aug 22, 2009 at 1:56 AM, Simon King <simon.k...@nuigalway.ie> wrote:

>
> Hi!
>
> On 22 Aug., 10:11, Nathann Cohen <nathann.co...@gmail.com> wrote:
> > Is there a variable defining the path of sage up to the current
> > branch ?
>
> There is SAGE_ROOT, and if I am not mistaken then SAGE_ROOT+'/devel/
> sage/' is a link to the current mercurial branch.
>
> But there is also a folder SAGE_ROOT+'/local/'. Your package could
> create a sub-folder (this is what distutils would do for local data of
> a package, IIRC) and store all its data in that sub-folder.
>

No, use the SAGE_DATA variable, which is defined in misc/misc.py:

sage: sage.misc.misc.SAGE_DATA

'/Users/wstein/sage/build/64bit/sage/data/'

Your graph should go somewhere in SAGE_ROOT/data/something...


William

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

Reply via email to