From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OfIbX-0002hT-Au for garchives@archives.gentoo.org; Sat, 31 Jul 2010 20:24:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 069EDE0B8B; Sat, 31 Jul 2010 20:24:21 +0000 (UTC) Received: from petteriraty.eu (petteriraty.eu [188.40.80.83]) by pigeon.gentoo.org (Postfix) with ESMTP id 69832E0B63 for ; Sat, 31 Jul 2010 20:24:05 +0000 (UTC) Received: from [82.130.46.219] (qiz3.kyla.fi [82.130.46.219]) by petteriraty.eu (Postfix) with ESMTPSA id 5340731D82 for ; Sat, 31 Jul 2010 20:24:04 +0000 (UTC) Message-ID: <4C5486B6.7040408@gentoo.org> Date: Sat, 31 Jul 2010 23:25:26 +0300 From: =?UTF-8?B?UGV0dGVyaSBSw6R0eQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; fi; rv:1.8.1.23) Gecko/20090916 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Locale check in python_pkg_setup() References: <201007300116.43653.Arfrever@gentoo.org> <201007311645.49028.Arfrever@gentoo.org> <201007312211.03680.Arfrever@gentoo.org> In-Reply-To: <201007312211.03680.Arfrever@gentoo.org> X-Enigmail-Version: 1.1.2 OpenPGP: id=B8E4ECF0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigBB971493DB2AF1414565DA3D" X-Archives-Salt: 122934f3-472f-457c-8fe3-e272d78bd482 X-Archives-Hash: 66bedda51808b5c8944b8735035fc47f This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBB971493DB2AF1414565DA3D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3DBAR >> 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 >=20 > I want only variables exported to Python processes. >=20 export -p Petteri --------------enigBB971493DB2AF1414565DA3D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJMVIa8AAoJEPeUsk245OzwzGoQALf2rp5NRK+c1XDPGZuZwp3l LWivQg/3PrvczxcTCJVYTMlTq6GI6VBdBvn0jJztnmpsTKuXcnko+LtF+Y3W0KSb HwcmIBU0EgZuqOirB9+lpSgdtb29V+l8Mn0REqYyL2dpWNh8SvUxa1klFMsz6u+t 5UjMVn/eKgsSKyGED1Xr1tdkN8368WTPOjymkbODHaIZCotS7QHgqVzOY1TM4NlY 6KqoijDI4rZ6cS+XnI2WVOdivShIK+p2a2pKT7T9ZWN2TkQWzgGhytsqwpxkk1T8 y966jfbVXHsflGTzzZfouN27LAlnz5agRRzkLzn/KP4PyH3SoA2QYEuq4my/nTIS 0vgQsslSoE2gVsef9Xzxgl69BLd5PmQoJ3XeESm68YzPJaiigxTaujgBjDh5efZK 9Ym9CuahVqJA/h+ftd5qKH/ISdmH4YzBdOK+qWK25+Q6uZnXPIo+XDGwBQDgx1Jk NCAd+bFRCnT7FiQvKKQ4mmVU+tqJWSGslK2nizQYgYT7GCREBQ8KFGAFK8xWrFJQ dD2l5HHuMf9aqPB7C4CrktFW1LkXGlZSRNrpELL4ZtZ+ZYxOUHyiuu3p18aeu3eA KGzdctus+8GQF/WPNshLXTvBmXc9/a9TN6PG6pOt1wQhhLf+Mf7S9QkQi1D5mCH1 gF84osZqrxEltAeWIu66 =/IBB -----END PGP SIGNATURE----- --------------enigBB971493DB2AF1414565DA3D--