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??