Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79991
| References | <CA+F4vi=3g_y-N7qrAyuTArj5kKXVzXhe8W+tfWQVcA2OjGUfpQ@mail.gmail.com> <5452EAE2.8020500@davea.name> <CA+F4vi=vXj4Ge+_69YwiNpn11gbSBmdgyouC2Z5wUpWxKPxuYQ@mail.gmail.com> |
|---|---|
| Date | 2014-10-30 21:30 -0500 |
| Subject | Re: set environmental variable from python |
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15343.1414722655.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: set environmental variable from python Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-10-30 21:30 -0500
Re: set environmental variable from python Rustom Mody <rustompmody@gmail.com> - 2014-10-30 19:36 -0700
Re: set environmental variable from python Artur Bercik <vbubbly21@gmail.com> - 2014-10-31 11:43 +0900
Re: set environmental variable from python "Gisle Vanem" <gvanem@yahoo.no> - 2014-10-31 12:31 +0100
Re: set environmental variable from python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-31 14:17 +0000
csiph-web