Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79993
| References | <CA+F4vi=3g_y-N7qrAyuTArj5kKXVzXhe8W+tfWQVcA2OjGUfpQ@mail.gmail.com> <5452EAE2.8020500@davea.name> <CA+F4vi=vXj4Ge+_69YwiNpn11gbSBmdgyouC2Z5wUpWxKPxuYQ@mail.gmail.com> <CAKJDb-PK-WXDr8KBHk0adB7QNG844G-GyOpYWip=BgAkb37rAQ@mail.gmail.com> |
|---|---|
| From | Artur Bercik <vbubbly21@gmail.com> |
| Date | 2014-10-31 11:40 +0900 |
| Subject | Re: set environmental variable from python |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15344.1414723283.18130.python-list@python.org> (permalink) |
[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
>
>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: set environmental variable from python Artur Bercik <vbubbly21@gmail.com> - 2014-10-31 11:40 +0900
csiph-web