subprocess with shared environment?

rowen rowen at u.washington.edu
Mon Nov 17 18:27:09 EST 2008


I'd like to replace some shell scripts with Python, but one step of
the script modifies my environment in a way that the subsequent steps
require.

A simple translation to a few lines of subprocess.call(...) fails
because the first call modifies the environment, but the other lines
don't see it.

Is there a straightforward  way to do this (without having to resort
to writing some of it as a shell script)?

-- Russell



More information about the Python-list mailing list