On Tue, 10 May 2005 15:41:30 -0700, Tony C <[EMAIL PROTECTED]> wrote:
>Your example didn't try to define the variable, it only attempted to >look at it's current value > >try this > > >>> C:\Tmp>set LANG >>> Environment variable LANG not defined >>> >>> > >C:\tmp> set LANG="SOME_LANGUAGE" >set LANG >LANG="SOME_LANGUAGE" > > I replied to Tony privately, because I did not see that he responded both to me and to the list. I'll repeat the reply here. This misses the point. I DID define the variable inside the Python code, and the process that I launched from Python (using os.system) DID inherit that variable. That's the best you can do: you can change the environment for the processes you start, but you cannot change the environment of the process that started you. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32