Nick Coghlan added the comment:

Slightly correction, as I didn't have the isolated mode equivalents quite 
correct:

    python3 -s script_dir/__main__.py
    python3 -s script_dir
    python3 -I script_dir

Isolated mode still runs the system site.py, which turns out to be signficant 
in a development checkout (getpath includes the Lib/ directory twice, and 
site.py then cleans out the duplicate).

So I think this PR is the right fix, but need confirmation from Steve that it 
still solves the original problem reported in issue 29319.

(Note the current PR is open against the 3.6 branch - I'm going to make a new 
single-commit one against master, flagging it for cherry-picking, then close 
this one)

----------
assignee:  -> steve.dower
stage: needs patch -> commit review

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29723>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to