On 6/14/06, Tim Blechmann TimBlechmann@gmx.net wrote:
would this python one-liner be an option for you?
import random, glob
def choose(path): return random.choice(glob.glob(path+"/*.mov"))
I hard coded the path so it looks like this:
import random, glob
def randy(): return random.choice(glob.glob("E:/pd_merge/past/*.mov"))
The only problem is the output from the py object is
print: symbol E:/pd_merge/past\\5.4.2006.9.49.4.mov
What's up with the extra \\ ? Getting this working could solve a huge headache on Windows.
Thanks cgc