[New-bugs-announce] [issue4057] Popen(..., cwd=...) does not set PWD environment variable
Miki Tebeka
report at bugs.python.org
Mon Oct 6 21:28:03 CEST 2008
New submission from Miki Tebeka <miki.tebeka at gmail.com>:
[21:26] pwd-bug $cat m
#!/usr/bin/env python
from subprocess import Popen
Popen(["./t"], cwd="./p")
[21:26] pwd-bug $cat p/t
#!/usr/bin/env python
from os import environ
print environ["PWD"]
[21:26] pwd-bug $python m
/Users/mtebeka/playground/pwd-bug
The output should be /Users/mtebeka/playground/pwd-bug/p
----------
messages: 74388
nosy: tebeka
severity: normal
status: open
title: Popen(..., cwd=...) does not set PWD environment variable
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4057>
_______________________________________
More information about the New-bugs-announce
mailing list