On Tue, May 10, 2005 at 12:46:52AM +0300, Nikos Kouremenos wrote:
> > I am trying to create and set environment variable LANG under windows
> > from Python file. I am using OS module's putenv or environ to do so.
> > But it is not really creating the environment variable or neither set
> > the same from the code.
> > This seems to be a easy fix, if anyone has a reason and fix for this
> > problem, please shoot it back to me
> > 
> > Thanks
> > Dinesh
> 
> This is PyGTK not python ml. anyways is os.environ['TEMP'] or whatever
> doesn't work try using pywin32 asking #python on irc.freenode.net or
> pythonml

Nikos does have a point (this is not a pure Python ML) but I should
point out that environment is in general inherited from a process, so if
you're doing:

    a. run shell
    b. run python program that sets variable
    c. runs another program that checks variable

it is unlikely to work.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to