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
    Popen(["make"], cwd="/tmp/p")

    [18:07] tmp $./t
    /tmp

The output of the "make" command should have been "/tmp/p" and not "/
tmp"

TIA,
--
Miki <[EMAIL PROTECTED]>
http://pythonwise.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to