On 3/8/07, Jerry Hill <[EMAIL PROTECTED]> wrote:


>         result=os.popen("dir "+dirPath).read()
to this:
        result=os.popen('dir "%s"' % dirPath).read()

That worked fine with all the directories I threw at it.


Thanks a lot Jerry ! :)  I didn't think of doing it this way.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to