system calls to sh
Alex
alex at somewhere.round.here
Fri Mar 17 16:11:13 EST 2000
More information about the Python-list mailing list
Fri Mar 17 16:11:13 EST 2000
- Previous message (by thread): system calls to sh
- Next message (by thread): system calls to sh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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.
- Previous message (by thread): system calls to sh
- Next message (by thread): system calls to sh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list