newbie question - executing system commands
Andy Todd
andy_todd at spam.free.yahoo.com
Tue Sep 4 08:34:03 EDT 2001
andy_todd at spam.free.yahoo.com (Andy Todd) wrote in
<Xns9112E55AF2A5Eandytoddspamfreeyaho at 203.109.250.24>:
>"Borzoj" <borzoj at pingu.ii.uj.edu.pl> wrote in
><9n23h1$qsc$1 at news.formus.pl>:
>
[look, snippage]
>
>Look at the documentation for the module 'os' -
>http://www.python.org/doc/current/lib/module-os.html
>
>To convert your example above into Python, try;
And forgive my rookie mistake ;-), the statement I forgot that you need to
type before these two is;
>>> import os
>
>>>> for imageName in os.listdir('.'):
>... print imageName
>
>at the interactive prompt and see what you get.
>
Regards,
Andy
--
Content free posts a speciality
More information about the Python-list
mailing list