Code works in current dir only?

Paxton Sanders pcsanders at yahoo.com
Sat Aug 16 00:09:43 CEST 2008


>> Does anyone know why the following code successfully labels (with
>> [f|d|?]) entries in the current directory, but not in any other 
>> directory?  (All other directories' entries print [?].)

>           n = os.path.join(path, n) ### <== you need this


Oops, there it is: my stupidity on display forever.

Thanks for the catch! :)

-- 
Paxton Sanders
pcsanders at yahoo.com



More information about the Python-list mailing list