execute command in CURRENT shell

Valentine Kouznetsov vkuznet at yahoo.com
Fri Aug 8 18:28:18 CEST 2003


Hi,
simple question, how to execute command in current shell, not in
subshell?

Example. I have environment variable A=aaa and need to invoke shell
(sh) script which will do something with A. If I do os.system() then
sub-shell will setup A
and execute my script there leaving A in parent shell untouched.

Thanks,
Valentine.




More information about the Python-list mailing list