On Tue, 2009-06-09 at 20:23 +0200, spir wrote:
> Le Tue, 9 Jun 2009 17:40:26 +0200,
> Sander Sweers <[email protected]> s'exprima ainsi:
> > 2009/6/9 spir <[email protected]>:
> > > is there a way to make glob work in a specified dir?
> >
> > >>> import glob
> > >>> glob.glob('c:\\GTK\\*.txt')
<snip>
> Thank you. That was so simple I couldn't figure it out myself ;-)
OK, sorry I misunderstood the question.
> What I was expecting is:
>
> (used e.g.
> print dirglob("/home/spir/prog/*/doc", "*.txt")
> to get .txt files from only doc subdirs of all projects)
This time you explained it way better then before ;-)
Greets
Sander
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor