os.putenv ?

Jacek Generowicz Jacek.Generowicz at cern.ch
Wed Mar 26 11:20:28 EST 2003


> cat > grrr.py
import os
os.putenv("GRRR","This is a late parrot.")
print "GRRR has been set to:", os.getenv("GRRR")
> echo $GRRR

> python grrr.py 
GRRR has been set to: None
> echo $GRRR


What am I missing ?




More information about the Python-list mailing list