Environment variables not visible from Python

Peter Pearson ppearson at nowhere.invalid
Thu Sep 22 12:51:39 EDT 2011


On Thu, 22 Sep 2011 09:21:59 +0200, Thomas Rachel wrote:
[snip]
> $ python -c 'import os; print "\n".join(sorted("%s=%s" % (k,v) for k,v 
> in os.environ.iteritems()))' | diff -u - <(env|LANG=C sort)

[standing ovation]

-- 
To email me, substitute nowhere->spamcop, invalid->net.



More information about the Python-list mailing list