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: 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: References: <5452EAE2.8020500@davea.name> 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 To: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --089e0118481027ffbf0506aec9b9 Content-Type: text/plain; charset=UTF-8 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 --089e0118481027ffbf0506aec9b9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thursday, October 30, 2014, Artur Bercik <vbubbly21@gmail.com> wrote:
Dear Dave Angel

Thanks for your a= nswer.

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.system('setx <...>&#= 39;)" or manually manipulating the registry with the _winreg module.

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

--
Sent from Gmail Mobile
--089e0118481027ffbf0506aec9b9--