Re: [Tutor] Making Incremental Filenames

2007-07-10 Thread Luke Paireepinart
Brian Hicks wrote: > Hi, I'm making a webcam automation script (for a project 365 photo > thing) and I can't figure out how to increment the filename every time > the script saves an image. I'm using this snippet of code to count > the tiles in the directory: > > filecount = len(os.walk("C:

Re: [Tutor] Making Incremental Filenames

2007-07-10 Thread John Fouhy
On 11/07/07, Brian Hicks <[EMAIL PROTECTED]> wrote: > Hi, I'm making a webcam automation script (for a project 365 photo thing) > and I can't figure out how to increment the filename every time the script > saves an image. I'm using this snippet of code to count the tiles in the > directory: [...

[Tutor] Making Incremental Filenames

2007-07-10 Thread Brian Hicks
Hi, I'm making a webcam automation script (for a project 365 photo thing) and I can't figure out how to increment the filename every time the script saves an image. I'm using this snippet of code to count the tiles in the directory: filecount = len(os.walk("C:\Users\Username\Desktop").next