subprocess with shared environment?

alex23 wuwei23 at gmail.com
Mon Nov 17 22:37:31 EST 2008


On Nov 18, 9:27 am, rowen <ro... at u.washington.edu> wrote:
> 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.
> Is there a straightforward  way to do this (without having to resort
> to writing some of it as a shell script)?

Perhaps using os.environ?

http://www.python.org/doc/2.5.2/lib/os-procinfo.html



More information about the Python-list mailing list