<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">I have to set several variables so it would be easier if I could set them from Python.</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 11:36 AM, Rustom Mody <span dir="ltr"><<a href="mailto:rustompmody@gmail.com" target="_blank">rustompmody@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:<br>
<span class="">> On Thursday, October 30, 2014, Artur Bercik <<a href="mailto:vbub...@gmail.com">vbub...@gmail.com</a>> wrote:<br>
><br>
> Dear Dave Angel<br>
><br>
><br>
> Thanks for your answer.<br>
><br>
><br>
> I am using Python 2.7<br>
><br>
><br>
> I want to set it permanently.<br>
> I have to set several variables so it would be easier if I could set them from Python.<br>
><br>
><br>
</span><span class="">> Depending on how "permanently" you mean, about your only solutions<br>
> would be "os.system('setx <...>')" or manually manipulating the<br>
> registry with the _winreg module.<br>
<br>
</span>Or dont do it from python but directly with regedit??<br>
<br>
The question really is: Why do you wish to do this from within python?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>