set environmental variable from python

Artur Bercik vbubbly21 at gmail.com
Fri Oct 31 03:40:55 CET 2014


could you please elaborate 'setx <...>'?


On Fri, Oct 31, 2014 at 11:30 AM, Zachary Ware <
zachary.ware+pylist at gmail.com> wrote:

> On Thursday, October 30, 2014, Artur Bercik <vbubbly21 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.
>
> Hope this helps,
> --
> Zach
>
>
> --
> Sent from Gmail Mobile
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141031/d61c63fc/attachment.html>


More information about the Python-list mailing list