Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79993 > unrolled thread

Re: set environmental variable from python

Started byArtur Bercik <vbubbly21@gmail.com>
First post2014-10-31 11:40 +0900
Last post2014-10-31 11:40 +0900
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: set environmental variable from python Artur Bercik <vbubbly21@gmail.com> - 2014-10-31 11:40 +0900

#79993 — Re: set environmental variable from python

FromArtur Bercik <vbubbly21@gmail.com>
Date2014-10-31 11:40 +0900
SubjectRe: set environmental variable from python
Message-ID<mailman.15344.1414723283.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

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


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

> On Thursday, October 30, 2014, Artur Bercik <vbubbly21@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
>
>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web