popen strangeness

kenzy at my-deja.com kenzy at my-deja.com
Fri Sep 8 22:58:33 CEST 2000


Try:
import os
z = os.popen('ls').read()
z

This will give you the directory.


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list