Support for Windows 7 ?

Pascale Mourier Pascale.Mourier at ecp.fr
Sat Sep 5 11:45:08 EDT 2009


Martin v. Löwis a écrit :

> Without having seen any details, I refuse to guess. Most likely, it is
> a user mistake.

YES IT IS! Sorry for the inconvenience. I usually start from this 
assumption. Yesterday this new student was really agressive, and I 
assumed he was right!

Here's his mistake: with Windows the name of the directory rooted at a 
drive name (say C:) is called 'C:\' not 'C:', and it's been that way for 
ages.
Well, os.listdir('C:') instead of raising an exception, for some reason 
behaves like os.listdir('.').



More information about the Python-list mailing list