output from external commands

James Colannino james at colannino.org
Mon Oct 24 13:33:41 EDT 2005


Kent Johnson wrote:

>import os
>files = os.listdir('.')
>

Thanks, that's good to know.  I still need to use os.popen() for a few 
things, but I'll be needing filenames also, so when I try to get 
filenames I'll use the above.

James

-- 
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/

"If Carpenters made houses the way programmers design programs, the first woodpecker to come along would destroy all of civilization." --Computer Proverb




More information about the Python-list mailing list