Vernon Cole wrote:
Tim:
 Okay, explain this...
C:\BZR\sterling\HL7>c:\python26\python.exe
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
on
win32
Type "help", "copyright", "credits" or "license" for more information.
import os
os.putenv('x','test')
print os.getenv('x')
zzz
exit()

C:\BZR\sterling\HL7>set x
x=zzz

C:\BZR\sterling\HL7>

os.getenv reads directly from os.environ, but os.putenv
does not actually place the value in os.environ.

        Roger

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to