[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

Eric Snow report at bugs.python.org
Tue Feb 12 10:55:30 EST 2019


Eric Snow <ericsnowcurrently at gmail.com> added the comment:

On Tue, Feb 12, 2019 at 3:57 AM STINNER Victor <report at bugs.python.org> wrote:
> A long term solution would to enable -I behavior by default: don't add the current directory to sys.path when using -c CMD.

>From what I can recall, it was a conscious decision to include CWD in sys.path.  Doing so benefits some scripting use cases.  The downside is the effect when running an app.

----------
nosy: +eric.snow

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35969>
_______________________________________


More information about the Python-bugs-list mailing list