> Look at os.environ if you want to affect the environment of the > current process. I tried that, but I didn't have much success in unsetting a variable: >>> os.environ['MY_VAR'] = 'whatever' >>> os.system ('echo $MY_VAR') whatever 0 >>> del os.environ['MY_VAR'] >>> os.system ('echo $MY_VAR') whatever 0 Alex.