> -----Original Message----- > From: python-win32-bounces+simon.king=motorola....@python.org > [mailto:python-win32-bounces+simon.king=motorola....@python.or > g] On Behalf Of Vernon Cole > Sent: 18 June 2009 16:05 > To: Roger Upole > Cc: python-win32@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 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32