Re: Environment Variables

Steven D. Majewski (
Thu, 28 Apr 1994 14:08:02 GMT

In article <>,
Steven D. Majewski <> wrote:
>Now *how* do you exec a users .profile so you can get the proper
>environment variables set and read back into python ?
>I've tried:
> posix.popen( "ksh -c '. ./profile ; env'" , 'r' ).readlines()
>( and a few other variations ) but I get the OLD variables!


My problem was that .profile doesn't set the variables
I was interested in - they are set somewhere else.

[ Which *still* leaves me with the problem of getting the
correct values from somewhere, but the problem is NOT
the one I thought it was! ]


- Steve Majewski (804-982-0831) <sdm7g@Virginia.EDU>
- UVA Department of Molecular Physiology and Biological Physics