system calls to sh

Kia A. Arab karab at stsci.edu
Fri Mar 17 15:30:48 EST 2000


I can't seem to affect environment variables using os.system calls. I
don't know if this makes a difference, but the variables are set in c
shell. I try to unset them from a python script like so:

os.system('unset MY_VAR')
os.system('export MY_VAR')
os.system('echo $MY_VAR')	# not unset!



More information about the Python-list mailing list