On 6/14/06, <b class="gmail_sendername">Tim Blechmann</b> <<a href="mailto:TimBlechmann@gmx.net">TimBlechmann@gmx.net</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
would this python one-liner be an option for you?<br><br>import random, glob<br><br>def choose(path):<br> return random.choice(glob.glob(path+"/*.mov"))</blockquote><div><br>
I hard coded the path so it looks like this:<br>
<br>
import random, glob<br>
<br>
def randy():<br>
return random.choice(glob.glob("E:/pd_merge/past/*.mov"))<br>
<br>
The only problem is the output from the py object is<br>
<br>
print: symbol E:/pd_merge/past\\\\5.4.2006.9.49.4.mov<br>
<br>
What's up with the extra \\\\ ? Getting this working could solve a huge headache on Windows.<br>
</div><br>
Thanks<br>
cgc<br></div>