[issue3440] Starting any program as a subprocess fails when subprocess.Popen has env argument

Paul Morelle report at bugs.python.org
Thu Apr 9 18:29:35 CEST 2009


Paul Morelle <madprog at htkc.org> added the comment:

I have just figured out that if you initialize env with
os.environ.copy() and then add/modify its components, then the bug
disappears:

env = os.environ.copy()
env['FOO'] = 'BAR'
[…]

But I have no idea (for the moment) of which variable is mandatory or not.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3440>
_______________________________________


More information about the Python-bugs-list mailing list