[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
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
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
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
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
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
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