On Mon, 2008-05-05 at 16:21 +0200, Paul Scott wrote:
> example:
> 
> if os.path.exists(os.path.join(basedir,picdir)) == True :
>     blah blah
> 

Sorry, pasted the wrong example...

Better example:

 pics =  glob.glob(os.path.join(os.path.join(basedir,picdir),'*'))


> Question is, is there a better way of doing this? The above *works* but
> it looks kinda hackish...

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to