[python-win32] regarding invoking command prompt using python
Vernon Cole
vernondcole at gmail.com
Thu Jun 18 17:04:46 CEST 2009
So -- is there an api call which DOES actually place the value in
os.environ?
--
Vernon
On Wed, Jun 17, 2009 at 11:56 PM, Roger Upole <rwupole at msn.com> wrote:
> 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 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090618/cfafde0d/attachment.htm>
More information about the python-win32
mailing list