Re: subprocess.Popen(..., cwd=...) and Makefile $(PWD) don't play nice

2008-10-14 Thread Thomas Bellman
Miki <[EMAIL PROTECTED]> writes: >> The problem is, he is not printing the name of the current working >> directory; he is printing the value of the variable $PWD. =A0That is >> likely set from the environment by the shell he started the Python >> program from, but Python does *not* update to refl

Re: subprocess.Popen(..., cwd=...) and Makefile $(PWD) don't play nice

2008-10-13 Thread Miki
> The problem is, he is not printing the name of the current working > directory; he is printing the value of the variable $PWD.  That is > likely set from the environment by the shell he started the Python > program from, but Python does *not* update to reflect changes to > the working directory.

Re: subprocess.Popen(..., cwd=...) and Makefile $(PWD) don't play nice

2008-10-07 Thread Thomas Bellman
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: > En Mon, 06 Oct 2008 13:09:26 -0300, Miki <[EMAIL PROTECTED]> escribió: >> Can anybody explain why Makefile $(PWD) does show the right directory >> when running under subprocess.Popen(..., cwd=...) >> >> For example: >> [18:07] tmp $cat /tmp/p/

Re: subprocess.Popen(..., cwd=...) and Makefile $(PWD) don't play nice

2008-10-06 Thread Gabriel Genellina
En Mon, 06 Oct 2008 13:09:26 -0300, Miki <[EMAIL PROTECTED]> escribió: Can anybody explain why Makefile $(PWD) does show the right directory when running under subprocess.Popen(..., cwd=...) For example: [18:07] tmp $cat /tmp/p/Makefile all: @echo $(PWD) [18:07] tmp $cat t

subprocess.Popen(..., cwd=...) and Makefile $(PWD) don't play nice

2008-10-06 Thread Miki
Hello All, Can anybody explain why Makefile $(PWD) does show the right directory when running under subprocess.Popen(..., cwd=...) For example: [18:07] tmp $cat /tmp/p/Makefile all: @echo $(PWD) [18:07] tmp $cat t #!/usr/bin/env python from subprocess import Popen