os.environ() giving errors while setting for Hudson
Posted
by Arnab Sen Gupta
on Stack Overflow
See other posts from Stack Overflow
or by Arnab Sen Gupta
Published on 2010-06-16T10:41:17Z
Indexed on
2010/06/16
10:52 UTC
Read the original article
Hit count: 302
I want a small python script to set the HUDSON_HOME environment variable.
When using the shell, I can easily do this using >>set HUDSON_HOME=http://localhost:8080
But how can I do the same directly through python?? I don't want to do it by passing the command line to os.system().. can os.environ() be of any help??
I had in my script: import os os.environ('HUDSON_HOME')='http://localhost:8080'
but it's probably setting it for the subprocss and not the parent shell..any way around this??
© Stack Overflow or respective owner