[python-win32] regarding invoking command prompt using python
King Simon-NFHD78
simon.king at motorola.com
Thu Jun 18 19:30:21 CEST 2009
> -----Original Message-----
> From: python-win32-bounces+simon.king=motorola.com at python.org
> [mailto:python-win32-bounces+simon.king=motorola.com at python.or
> g] On Behalf Of Vernon Cole
> Sent: 18 June 2009 16:05
> To: Roger Upole
> Cc: python-win32 at python.org
> Subject: Re: [python-win32] regarding invoking command prompt
> using python
>
> So -- is there an api call which DOES actually place the
> value in os.environ?
> --
> Vernon
I think you should just set the value in os.environ:
In [1]: import os
In [2]: os.environ['abc'] = 'def'
In [3]: os.getenv('abc')
Out[3]: 'def'
In [4]: os.environ['abc']
Out[4]: 'def'
Simon
More information about the python-win32
mailing list