Code works in current dir only?

Paxton Sanders pcsanders at yahoo.com
Fri Aug 15 18:09:43 EDT 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