thisdate = datetime.date.today()
foldername = "c:\photos\source\%04d\%04d%02d%02d" % (thisdate.year,thisdate.year,thisdate.month,thisdate.day)
except WindowsError, e:
if e.winerror <> 183:
I'll comment it up and add some more logic later, but the gist of it is that it automates the creation and opening of a folder which I do when I transfer photos. It'll save about 30 seconds each time it's run.
One small set on a long journey.
PS: I used a variant of this code to colorize/HTML the code.