Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'python.': 0.02; 'variables': 0.07; 'subject:set': 0.09; 'cc:addr:python-list': 0.11; '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; 'wrote:': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; '31,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'easier': 0.31; 'url:python': 0.33; 'fri,': 0.33; 'subject:from': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'module.': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'skip:& 10': 0.38; 'gmail': 0.38; 'skip:& 20': 0.39; 'url:mail': 0.40; 'how': 0.40; 'dave': 0.60; 'manually': 0.60; 'hope': 0.61; 'dear': 0.65; '30,': 0.65; 'to:addr:gmail.com': 0.65; 'answer.': 0.68; '2014,': 0.84; 'permanently.': 0.84; 'angel': 0.91; 'ware': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=mzKXksQLbc8zKi7ppkbwoCmNjrM7gFHgq2krhes2p44=; b=Ybe5iXFFcd1e/v7B58IHJa9YBqIEYCzEM0FMU2bKH6bJlxiPEoVCcGX1vxeBdFca6d Yr6Bppuf4zbtZEai5lLtWEAFznTLBe6rfdCNj99pYI1KachxgUdF5CBq960KQcEfrTmb JFY1r4g47QPVzo33Thm15d8AqPu/nkilIxJ34JGtSk7QJbku/lOp5hyzhnNM0CcJezi3 0DsBjO7ub9oIBvWlArJ3SgWxx88RFV/1FJdY4ZJ9TS+0tir/X/pNZSO3NcLzglYn9SqX apEf/9hOE2q1QKBjH8Giy1M+HYhii7bq4k9NVCjhuyhb07rIdPfWTt5qvtCTGqXHLFCJ lnxg== X-Received: by 10.60.102.211 with SMTP id fq19mr18103820oeb.2.1414723275194; Thu, 30 Oct 2014 19:41:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5452EAE2.8020500@davea.name> From: Artur Bercik Date: Fri, 31 Oct 2014 11:40:55 +0900 Subject: Re: set environmental variable from python To: Zachary Ware Content-Type: multipart/alternative; boundary=089e01160a2e4608b30506aeee96 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414723283 news.xs4all.nl 2835 [2001:888:2000:d::a6]:37675 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79993 --089e01160a2e4608b30506aeee96 Content-Type: text/plain; charset=UTF-8 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 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 > > --089e01160a2e4608b30506aeee96 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
could you please elaborate=C2=A0'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

<= div>Thanks for your answer.

I am using Python 2.7<= /div>

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.sy= stem('setx <...>')" or manually manipulating the registr= y with the _winreg module.

Hope this helps,
<= div>--
Zach=C2=A0


--
Sent from Gmail Mobile

--
https://mail.python.org/mailman/listinfo/python-list


--089e01160a2e4608b30506aeee96--