On Jan 16, 2009, at 9:36 AM, Carl Witty wrote:
> > On Jan 15, 10:52 pm, "Justin C. Walker" <jus...@mac.com> wrote: >> If the temp files are truly temp files (i.e., not of interest when >> the >> process that creates them exits), then there are Python calls that >> help: the temp files can be created and unlinked, so that at exit, >> they vanish. In fact, they are not visible in the file system at >> all. > > This works for files which are meant to be written and read inside the > same process (some sort of manual swap file, say); but in our case the > goal is to send the file from the Sage process to the ffmpeg process, > and this technique doesn't work in that case. Yup. If you need the files outside the creating process, you do need to use a different call. But there is a tempfile procedure in Python that does just what is needed (creates a visible-in-the-filesystem file with a unique name). Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds -------- If you're not confused, You're not paying attention -------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---