Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79991
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <zachary.ware@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.040 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'python.': 0.02; 'variables': 0.07; 'subject:set': 0.09; 'python': 0.11; '2.7': 0.14; 'mean,': 0.16; 'subject:skip:e 10': 0.16; 'subject:variable': 0.16; 'subject:python': 0.16; 'thursday,': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'email addr:gmail.com>': 0.22; 'to:name:python-list@python.org': 0.22; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'subject:from': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'module.': 0.36; 'thanks': 0.36; 'skip:& 10': 0.38; 'gmail': 0.38; 'to:addr:python-list': 0.38; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'dave': 0.60; 'manually': 0.60; 'hope': 0.61; 'dear': 0.65; '30,': 0.65; 'answer.': 0.68; '2014,': 0.84; 'permanently.': 0.84; 'received:mail-ob0-x22d.google.com': 0.84; 'angel': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=B4EtyRFz5O6Ewpqt9wt12bKCdBd/Fmm7ac5Mo0gx3RA=; b=F/CJbE8evSJDOWVkQquH5MQOFw4StnNxqneCHnyUeX2d3/oTyz8NxYTEnoaeXJOZNC v8Qv7IEDR1p23Xv3FruF849Eu4O5CEkqN1UswjNMB4SXilIrwSCmW+0+L25uZkrx6VHG aOgwTaxHbbTz1bILq1RzQvGlW0FWyKjpH7agrNcOun2Yof/AZopqf/QwqowtJk2gjqqm J6l6RKp7HOUxHcx6oG6KmIyY/dpC4lUh8PIHWhyhmvUmTib0WYE8dNPF7yA2/nD+yF/z GkpkmdULrbXGv/y88Yu/6hs8zmydtvxHCTj9Q4C8ggzFqNxdKTxTcVcVQIrGgfMa0iAn NDVA== |
| MIME-Version | 1.0 |
| X-Received | by 10.60.177.137 with SMTP id cq9mr87265oec.45.1414722652469; Thu, 30 Oct 2014 19:30:52 -0700 (PDT) |
| Sender | zachary.ware@gmail.com |
| In-Reply-To | <CA+F4vi=vXj4Ge+_69YwiNpn11gbSBmdgyouC2Z5wUpWxKPxuYQ@mail.gmail.com> |
| References | <CA+F4vi=3g_y-N7qrAyuTArj5kKXVzXhe8W+tfWQVcA2OjGUfpQ@mail.gmail.com> <5452EAE2.8020500@davea.name> <CA+F4vi=vXj4Ge+_69YwiNpn11gbSBmdgyouC2Z5wUpWxKPxuYQ@mail.gmail.com> |
| Date | Thu, 30 Oct 2014 21:30:52 -0500 |
| X-Google-Sender-Auth | 7FqBRO30y3yK4hZUceBzuJ0c_6Q |
| Subject | Re: set environmental variable from python |
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=089e0118481027ffbf0506aec9b9 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15343.1414722655.18130.python-list@python.org> (permalink) |
| Lines | 46 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1414722655 news.xs4all.nl 2829 [2001:888:2000:d::a6]:33113 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:79991 |
Show key headers only | View raw
[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