Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79992
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-10-30 19:36 -0700 |
| References | <CA+F4vi=3g_y-N7qrAyuTArj5kKXVzXhe8W+tfWQVcA2OjGUfpQ@mail.gmail.com> <5452EAE2.8020500@davea.name> <CA+F4vi=vXj4Ge+_69YwiNpn11gbSBmdgyouC2Z5wUpWxKPxuYQ@mail.gmail.com> <mailman.15343.1414722655.18130.python-list@python.org> |
| Message-ID | <36c5d2db-a931-417e-ae8c-9c77acfc947b@googlegroups.com> (permalink) |
| Subject | Re: set environmental variable from python |
| From | Rustom Mody <rustompmody@gmail.com> |
On Friday, October 31, 2014 8:01:08 AM UTC+5:30, Zachary Ware wrote:
> On Thursday, October 30, 2014, Artur Bercik <vbub...@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.
Or dont do it from python but directly with regedit??
The question really is: Why do you wish to do this from within python?
Back to comp.lang.python | Previous | Next — Previous in thread | 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