Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Wayne Watson
Title: Signature.html txt files only contain text. The mate to the txt file is a dat file, which contains video. I'm only changing its name to match that of its corresponding txt file. The txt file has a time stamp in it. That's why I'm changing the first line to match the new time stamp. Both

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Wayne Watson
Title: Signature.html Thanks very much for the tips. Things to look into yet. At this point, I'm not sure what ufilenames are. Linux related? My first cut at this is to make the program available to Win users. I'm not sure how many Linux and Apple users we have in our widely dispersed group o

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Wayne Watson
Title: Signature.html I'm using 2.4 for Win. I'll look into the tempfile module. Tim Golden wrote: Wayne Watson wrote: Enclosed is a segment of a program which copies a txt file, but replaces the first line with a new one. The new one has a suffix of tmp. After it executed the code and exit

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Tim Golden
Wayne Watson wrote: Enclosed is a segment of a program which copies a txt file, but replaces the first line with a new one. The new one has a suffix of tmp. After it executed the code and exited the program normally (running out of code), I couldn't access the new tmp file. It was listed by Win

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote I need to use something like sys.exit(). sys.exit won't change the file permissions etc. It simply sets the exit status of the program. I suspect the problem is that you still have IDLE running. Have you tried testing the program outside IDLE? You mi

Re: [Tutor] Releasing a File for Access

2008-09-11 Thread Wayne Watson
Title: Signature.html Thanks. So noted. I suspect I need to use something like sys.exit(). However, I'm in development mode right now with IDLE, and there's a small penalty for using it with IDLE. I think it's a dialog that asks if one wants to really exit. The files are maybe 70 characters pe

Re: [Tutor] Releasing a File for Access

2008-09-11 Thread bob gailer
Wayne Watson wrote: Enclosed is a segment of a program which copies a txt file, but replaces the first line with a new one. The new one has a suffix of tmp. After it executed the code and exited the program normally (running out of code), I couldn't access the new tmp file. It was listed by Win

[Tutor] Releasing a File for Access

2008-09-11 Thread Wayne Watson
Title: Signature.html Enclosed is a segment of a program which copies a txt file, but replaces the first line with a new one. The new one has a suffix of tmp. After it executed the code and exited the program normally (running out of code), I couldn't access the new tmp file. It was listed by W