How do I pass a variable to an external program
Cameron Laird
claird at lairds.com
Fri Oct 10 15:03:01 EDT 2003
In article <shDhb.330$%93.304 at news-binary.blueyonder.co.uk>,
Rigga <Rigga at noemail.com> wrote:
>Hi
>
>I would like to pass a variable to an external program i.e.
>
>os.system('cd $variable')
>
>However this doesnt work, I cant figure it out, any ideas?
.
.
.
In the short term,
os.system('cd %s' % variable)
is probably what you think you want.
--
Cameron Laird <claird at phaseit.net>
Business: http://www.Phaseit.net
More information about the Python-list
mailing list