[python-win32] regarding invoking command prompt using python
Roger Upole
rwupole at msn.com
Thu Jun 18 07:56:30 CEST 2009
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
More information about the python-win32
mailing list