set environmental variable from python
vbubbly21 at gmail.com
Fri Oct 31 03:43:21 CET 2014
I have to set several variables so it would be easier if I could set them
On Fri, Oct 31, 2014 at 11:36 AM, Rustom Mody <rustompmody at gmail.com> wrote:
> On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
> > On Thursday, October 30, 2014, Artur Bercik <vbub... at gmail.com> wrote:
> > Dear Dave Angel
> > Thanks for your answer.
> > I am using Python 2.7
> > I want to set it permanently.
> > I have to set several variables so it would be easier if I could set
> them from Python.
> > Depending on how "permanently" you mean, about your only solutions
> > would be "os.system('setx <...>')" or manually manipulating the
> > registry with the _winreg module.
> Or dont do it from python but directly with regedit??
> The question really is: Why do you wish to do this from within python?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list