Re: os.path.isdir question

2008-03-16 Thread Benjamin
On Mar 16, 2:27 pm, MRAB <[EMAIL PROTECTED]> wrote: > On Mar 16, 2:27 am, Benjamin <[EMAIL PROTECTED]> wrote: > > > On Mar 15, 8:12 pm, lampshade <[EMAIL PROTECTED]> wrote:> Hello, > > > > I'm having some problems with os.path.isdir I think it is something > > > simple that I'm overlooking. > > >

Re: os.path.isdir question

2008-03-16 Thread MRAB
On Mar 16, 2:27 am, Benjamin <[EMAIL PROTECTED]> wrote: > On Mar 15, 8:12 pm, lampshade <[EMAIL PROTECTED]> wrote:> Hello, > > > I'm having some problems with os.path.isdir I think it is something > > simple that I'm overlooking. > > > #!/usr/bin/python > > import os > > > my_path = os.path.expan

Re: os.path.isdir question

2008-03-15 Thread John Machin
On Mar 16, 12:12 pm, lampshade <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having some problems with os.path.isdir I think it is something > simple that I'm overlooking. > > #!/usr/bin/python > import os > > my_path = os.path.expanduser("~/pictures/") > print my_path > results = os.listdir(my_pat

Re: os.path.isdir question

2008-03-15 Thread lampshade
On Mar 15, 9:27 pm, Benjamin <[EMAIL PROTECTED]> wrote: > On Mar 15, 8:12 pm, lampshade <[EMAIL PROTECTED]> wrote:> Hello, > > > I'm having some problems with os.path.isdir I think it is something > > simple that I'm overlooking. > > > #!/usr/bin/python > > import os > > > my_path = os.path.expan

Re: os.path.isdir question

2008-03-15 Thread yoz
lampshade wrote: > Hello, > > I'm having some problems with os.path.isdir I think it is something > simple that I'm overlooking. > > #!/usr/bin/python > import os > > my_path = os.path.expanduser("~/pictures/") > print my_path > results = os.listdir(my_path) > for a_result in results: > if

Re: os.path.isdir question

2008-03-15 Thread Benjamin
On Mar 15, 8:12 pm, lampshade <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having some problems with os.path.isdir I think it is something > simple that I'm overlooking. > > #!/usr/bin/python > import os > > my_path = os.path.expanduser("~/pictures/") > print my_path > results = os.listdir(my_path

os.path.isdir question

2008-03-15 Thread lampshade
Hello, I'm having some problems with os.path.isdir I think it is something simple that I'm overlooking. #!/usr/bin/python import os my_path = os.path.expanduser("~/pictures/") print my_path results = os.listdir(my_path) for a_result in results: if os.path.isdir(str(my_path) + str(a_result)