On Jan 15, 2009, at 19:34 , mabshoff wrote:

>
>
>
> On Jan 15, 7:31 pm, "Justin C. Walker" <[email protected]> wrote:
>> On Jan 15, 2009, at 19:02 , mabshoff wrote:
>
> <SNIP>
>
>>> Just use /tmp or DOT_SAGE/tmp, but create a directory in it so you
>>> don't clobber other jobs of the same kind. It might be a good idea  
>>> to
>>> add some create_tmpdir() command in Sage that is guaranteed to be
>>> unique and is in a writable directory, i.e. it should first try
>>> DOT_SAGE/tmp, then /tmp and so on. IIRC there is even some env
>>> variable where we can point a per user tmp dir to. So you might want
>>> to open a ticket for the above in order to avoid various people  
>>> doing
>>> the same thing in their own code over and over again.
>>
>> Python has several calls to make temporary files that will not be
>> clobbered by other users or uses.  No need to make directories.
>
> Yes, but we are ending up calling command line tools which to not obey
> Python's convention :)
>
> And having all the files in one directory makes debugging a lot easier
> and it assures that you get rid of all files by just wiping the one
> tmp directory.

I think that the calls to create temp files put all files in the same  
directory.  But perhaps that isn't quite what you meant :-}

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
-----------
Nobody knows the trouble I've been
-----------




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

Reply via email to