Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.113 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.00; 'linux,': 0.07; 'variables.': 0.09; 'python': 0.11; 'bug': 0.12; 'subject:effect': 0.16; 'wrote:': 0.18; 'trying': 0.19; '>>>': 0.22; 'header:User- Agent:1': 0.23; '>>>': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; "i've": 0.25; '>': 0.26; 'header:In-Reply- To:1': 0.27; 'appreciated.': 0.29; "doesn't": 0.30; 'received:10.20.15': 0.31; 'received:10.20.18': 0.31; 'received:10.20.55': 0.31; 'received:eigbox.net': 0.31; 'linux': 0.33; 'received:10.20': 0.33; 'could': 0.34; 'received:66': 0.35; 'anybody': 0.35; 'add': 0.35; 'url:rec-html40': 0.35; 'doing': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'application': 0.37; 'received:10': 0.37; 'skip:o 20': 0.38; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'does': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'group,': 0.63; 'happen': 0.63; 'export': 0.74; 'url:dtd': 0.80; 'received:66.96.184.19': 0.84; 'received:bosmailout19.eigbox.net': 0.84; 'this;': 0.91; 'url:strict': 0.95; '2013': 0.98 X-Authority-Analysis: v=2.0 cv=dt1Z+ic4 c=1 sm=1 a=rVQsIS62A0px7airrlu8SQ==:17 a=spKFjZujUncA:10 a=2Cs5qbXtQ68A:10 a=OmMKortqy18A:10 a=tTExfe6FAAAA:8 a=gtpG5acWsZEA:10 a=8ONGxiEqAAAA:8 a=vgKKg1R5_PJQC19o9J8A:9 a=CjuIK1q_8ugA:10 a=P3uMDV8RXKwA:10 a=SSmOFEACAAAA:8 a=oAKbnHNPiomzLdF8_o4A:9 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=qMDZ_Ezp4_0A:10 a=Vy4KnZB1aYTDFl_r:21 a=6uKCkKhFq2wXOH2GoQX8aA==:117 X-EN-OrigOutIP: 10.20.18.3 X-EN-IMPSID: ptTo1l00J03yW7601tToah From: inq1ltd To: python-list@python.org Subject: Re: os.putenv() has no effect Date: Tue, 18 Jun 2013 13:24:50 -0400 Organization: inqvista User-Agent: KMail/4.7.2 (Linux/2.6.37.6-24-desktop; KDE/4.7.2; i686; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart1918735.j8jFmR3fJT" Content-Transfer-Encoding: 7Bit X-EN-UserInfo: ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195 X-EN-AuthUser: inq1ltd@inqvista.com Sender: inq1ltd X-EN-OrigIP: 71.246.154.233 X-EN-OrigHost: pool-71-246-154-233.rich.east.verizon.net Cc: Johannes Bauer 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: 97 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371578736 news.xs4all.nl 15904 [2001:888:2000:d::a6]:55221 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48651 --nextPart1918735.j8jFmR3fJT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday, June 18, 2013 06:49:31 PM Johannes Bauer wrote: > Hi group, > > I've tracked down a bug in my application to a rather strange > phaenomenon: os.putenv() doesn't seem to have any effect on my platform > > (x86-64 Gentoo Linux, Python 3.2.3): > >>> os.getenv("PATH") > > '/usr/joebin:/usr/local/bin:/usr/bin:/bin:/usr/games/bin:/usr/sbin:/sbin:~/b > in' > >>> os.putenv("PATH", "/") > >>> os.getenv("PATH") > > '/usr/joebin:/usr/local/bin:/usr/bin:/bin:/usr/games/bin:/usr/sbin:/sbin:~/b > in' > >>> os.getenv("FOO") > >>> os.putenv("FOO", "BAR") > >>> os.getenv("FOO") > > Does anybody know why this would happen or what I could be doing wrong? > Help is greatly appreciated. > > Thanks in advance, > Johannes > > if you are trying to add a dir to a linux path you need to understand how to add or change environment variables. research this; $ export PATH= $PATH: ???/???/??? jd inqvista.com --nextPart1918735.j8jFmR3fJT Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

On Tuesday, June 18, 2013 06:49:31 PM Johannes Bauer wrote:

> Hi group,

>

> I've tracked down a bug in my application to a rather strange

> phaenomenon: os.putenv() doesn't seem to have any effect on my platform

>

> (x86-64 Gentoo Linux, Python 3.2.3):

> >>> os.getenv("PATH")

>

> '/usr/joebin:/usr/local/bin:/usr/bin:/bin:/usr/games/bin:/usr/sbin:/sbin:~/b

> in'

> >>> os.putenv("PATH", "/")

> >>> os.getenv("PATH")

>

> '/usr/joebin:/usr/local/bin:/usr/bin:/bin:/usr/games/bin:/usr/sbin:/sbin:~/b

> in'

> >>> os.getenv("FOO")

> >>> os.putenv("FOO", "BAR")

> >>> os.getenv("FOO")

>

> Does anybody know why this would happen or what I could be doing wrong?

> Help is greatly appreciated.

>

> Thanks in advance,

> Johannes

>

>

if you are trying to add a dir to a linux path you need

to understand how to add or change environment variables.

research this;

$ export PATH= $PATH: ???/???/???

 

jd

inqvista.com

 

 

 

 

 

 

--nextPart1918735.j8jFmR3fJT--