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
> 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.
"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/
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
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