On Jul 23, 10:11 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > import glob > random.choice([f for f in glob.glob(root, "*")])
glob.glob only accepts one argument though, did you mean root + "*"? It also returns folders as well as files, though, and the list comprehension is not necessary given it returns a list itself. -- http://mail.python.org/mailman/listinfo/python-list