os.popen() and dir command

nobody nobody at nowhere.near.here
Tue Feb 4 09:37:34 EST 2003


The following code does not run properly on Windows XP
(it is supposed to get all zip file names):

f =os.popen("dir /b /s w:\\*.zip")
p=f.readlines()

The p will end up with a lot of nulls in it, it looks that os.popen() is
still broken.
Does anybody else have problem with os.popen() and dir command?






More information about the Python-list mailing list