Environment Variables

kevanh@lsl.co.uk
Wed, 27 Apr 94 18:00:49 +0100

Hello All,

I am current converting one of old perl programs into python and have come
up against a problem. How do you set environment variables that can be used
by commands invoked with posix.popen() ?

In perl all I had to do was:

$ENV{"FRED"} = "bert";
print `printenv FRED`;

What is the solution in python?

Many Thanks In Advance

--
Kevan