subprocess with shared environment?

2008-11-17 Thread rowen
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.

Re: subprocess with shared environment?

2008-11-17 Thread Albert Hopkins
On Mon, 2008-11-17 at 15:27 -0800, rowen 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. A simple translation to a few lines of subprocess.call(...) fails because the first call

Re: subprocess with shared environment?

2008-11-17 Thread Gabriel Genellina
En Mon, 17 Nov 2008 21:27:09 -0200, rowen [EMAIL PROTECTED] escribió: 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

Re: subprocess with shared environment?

2008-11-17 Thread alex23
On Nov 18, 9:27 am, rowen [EMAIL PROTECTED] 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