Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Petteri R├Ąty <betelgeuse@g.o>
Subject: Re: Locale check in python_pkg_setup()
Date: Sat, 31 Jul 2010 23:25:26 +0300
On 07/31/2010 11:10 PM, Arfrever Frehtes Taifersar Arahesis wrote:
>>
>> If the variable is set but not exported then it is local to the shell
>> env.  When bash goes to exec() python the local shell variables are
>> not in the env; so os.environ() will not contain them.
>>
>> antarus@kyoto ~ $ foo=BAR
>> antarus@kyoto ~ $ echo $foo
>> BAR
>> antarus@kyoto ~ $ python -c 'import os; print os.environ.get("foo")'
>> None
>> antarus@kyoto ~ $ export foo
>> antarus@kyoto ~ $ python -c 'import os; print os.environ.get("foo")'
>> BAR
> 
> I want only variables exported to Python processes.
> 

export -p

Petteri

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: Locale check in python_pkg_setup()
-- Arfrever Frehtes Taifersar Arahesis
References:
Locale check in python_pkg_setup()
-- Arfrever Frehtes Taifersar Arahesis
Re: Locale check in python_pkg_setup()
-- Arfrever Frehtes Taifersar Arahesis
Re: Locale check in python_pkg_setup()
-- Alec Warner
Re: Locale check in python_pkg_setup()
-- Arfrever Frehtes Taifersar Arahesis
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Locale check in python_pkg_setup()
Next by thread:
Re: Locale check in python_pkg_setup()
Previous by date:
Re: New global use flag: vpx or vp8
Next by date:
Re: Locale check in python_pkg_setup()


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.