system calls to sh

Justin Sheehy dworkin at ccs.neu.edu
Fri Mar 17 16:07:30 EST 2000


"Kia A. Arab" <karab at stsci.edu> writes:

> I can't seem to affect environment variables using os.system calls.

os.system spawns subshells, and thus changes to environment variables
in os.system calls are somewhat fruitless.

Look at os.environ if you want to affect the environment of the
current process.

-Justin

 




More information about the Python-list mailing list