subprocess with shared environment?

alex23 wuwei23 at gmail.com
Tue Nov 18 04:37:31 CET 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