Re: os.listdir path error

2007-08-04 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >I get "SyntaxError: EOL while scanning single-quoted string", which is >what should happen when you escape the double-quotes at the end. Not >sure how you're getting that WindowsErrors. > >If I do os.listdir('c:\python24') instead, it works fine. Yes, but only by acci

Re: os.listdir path error

2007-08-03 Thread kyosohma
On Aug 3, 2:50 pm, [EMAIL PROTECTED] wrote: > Hello > > Here is my simple listdir example: > > >>> import os > >>> os.listdir("C:\Python24\") # This directory relly exists > > Here is my error: > > WindowsError: [Errno 3] The system cannot find the path specified: 'l/ > *.*' > > Regards, > Vedran

Re: os.listdir path error

2007-08-03 Thread Jerry Hill
On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello > > Here is my simple listdir example: > > >>> import os > >>> os.listdir("C:\Python24\") # This directory relly exists > > Here is my error: > > WindowsError: [Errno 3] The system cannot find the path specified: 'l/ > *.*' That's a

os.listdir path error

2007-08-03 Thread vedrandekovic
Hello Here is my simple listdir example: >>> import os >>> os.listdir("C:\Python24\") # This directory relly exists Here is my error: WindowsError: [Errno 3] The system cannot find the path specified: 'l/ *.*' Regards, Vedran -- http://mail.python.org/mailman/listinfo/python-list

Re: path error

2007-07-20 Thread godavemon
On Jul 20, 11:45 am, godavemon <[EMAIL PROTECTED]> wrote: > On Jul 20, 11:42 am, godavemon <[EMAIL PROTECTED]> wrote: > > > I'm on an intel macbook using OS X 10.4 and for some reason my path is > > being interpreted incorrectly. See the example: > > > [EMAIL PROTECTED] pwd > > /Users/dave/til/jar

Re: path error

2007-07-20 Thread godavemon
On Jul 20, 11:42 am, godavemon <[EMAIL PROTECTED]> wrote: > I'm on an intel macbook using OS X 10.4 and for some reason my path is > being interpreted incorrectly. See the example: > > [EMAIL PROTECTED] pwd > /Users/dave/til/jared <- dirname = jared > [EMAIL PROTECTED] python > ...>>> impo

path error

2007-07-20 Thread godavemon
I'm on an intel macbook using OS X 10.4 and for some reason my path is being interpreted incorrectly. See the example: [EMAIL PROTECTED] pwd /Users/dave/til/jared <- dirname = jared [EMAIL PROTECTED] python ... >>> import os >>> os.path.abspath('') '/Users/dave/til/Jared' <- dirname