[issue1602133] non-framework python fails to define os.environ properly

Ronald Oussoren report at bugs.python.org
Sat Jan 12 22:09:37 CET 2013


Ronald Oussoren added the comment:

I appear to be running into this as well in py2app, with the current 2.7 tree and a --enable-shared build py2app's updates to the environment (with setenv from C code) won't be seen by Python, even though Python is initialized after the call to setenv.

The patch doesn't work for me though: with the patch the build fails because os.environ no longer contains 'PATH'. I'm looking into this issue.

The basic idea of the patch seems sane, both posixmodule.c and crt_externs.h mention that the call is needed for shared libraries.

----------

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


More information about the Python-bugs-list mailing list