Dear Robert,
On Nov 20, 8:45 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> > a) In what directory should the files be created? [Subdirectories
> > of] SAGE_TMP perhaps?
>
> Yes.
>
> > b) How can one avoid name conflicts with user data? E.g., in the doc
> > test for save_session, this point is not taken care of.
>
> Seehttp://www.python.org/doc/2.5.2/lib/module-tempfile.html
Cool, I think I will use it!
But shouldn't the doc test of save_session be changed, using tempfile?
After all, if the user has a file 'session.sobj' in the current
directory, the doc test would destroy it.
As much as I see, SAGE_TMP is removed as soon as you quit Sage.
However, if explicit deletion were necessary: How can one delete a non-
empty directory? os.rmdir(...) would complain.
Thank you!
Simon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---