Support for Windows 7 ?

Grant Edwards grante at visi.com
Sat Sep 5 22:44:09 EDT 2009


On 2009-09-05, Pascale Mourier <Pascale.Mourier at ecp.fr> wrote:

> Well, os.listdir('C:') instead of raising an exception, for
> some reason behaves like os.listdir('.').

Windows (and DOS) have worked like that for decades.  A lone
drive letter always refers to the "current directory" on that
drive.  It's been that way since the very first versions of
PC-DOS and MS-DOS.

-- 
Grant




More information about the Python-list mailing list