Simple question for all of you python gurus
sean_berry at cox.net
Thu Feb 26 22:26:54 CET 2004
Thanks to you both.
os.chdir ... I knew it was something simple. Sorry for the wasted
Cameron Laird <claird at lairds.com> wrote in message
news:103svepnqovuk5e at corp.supernews.com...
> In article <NYu%b.12366$qL1.145 at fed1read02>,
> Sean Berry <sean_berry at cox.net> wrote:
> >so I tried to do something like this
> >os.system("cd /home/%s/.tmda/pending" %userid)
> >li = os.popen("/usr/bin/grep -i %s" %phase)
> >lis = lis.readlines()
> >But since cd is a shell command, it does not seem to work either.
> >How can I do this?
> import os
> os.chdir("/home/%s/.tmda/pending" % userid)
> li = os.popen(...
> Cameron Laird <claird at phaseit.net>
> Business: http://www.Phaseit.net
More information about the Python-list