Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 75345c552d0889f4f63039d6063f371846c8f41f authored by Nick Coghlan on 12 March 2017, 11:34:22 UTC, committed by Ned Deily on 21 March 2017, 05:55:11 UTC
Directory and zipfile execution previously added the parent directory of the directory or zipfile as sys.path[0] and then subsequently overwrote it with the directory or zipfile itself. This caused problems in isolated mode, as it overwrote the "stdlib as a zip archive" entry in sys.path, as the parent directory was never added. The attempted fix to that issue in bpo-29319 created the opposite problem in *non*-isolated mode, by potentially leaving the parent directory on sys.path instead of overwriting it. This change fixes the root cause of the problem by removing the whole "add-and-overwrite" dance for sys.path[0], and instead simply never adds the parent directory to sys.path in the first place. (cherry picked from commit d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d) (cherry picked from commit c60948464fb0ec116ea227f6bce8a4bb8fb75257)
1 parent 07e6cbd
Tip revision: 75345c552d0889f4f63039d6063f371846c8f41f authored by Nick Coghlan on 12 March 2017, 11:34:22 UTC
[3.6] bpo-29723: Consistently configure sys.path[0] (#636)
[3.6] bpo-29723: Consistently configure sys.path[0] (#636)
Tip revision: 75345c5
File | Mode | Size |
---|---|---|
clinic | ||
stringlib | ||
README | -rw-r--r-- | 41 bytes |
abstract.c | -rw-r--r-- | 80.4 KB |
accu.c | -rw-r--r-- | 2.4 KB |
boolobject.c | -rw-r--r-- | 6.5 KB |
bytearrayobject.c | -rw-r--r-- | 68.7 KB |
bytes_methods.c | -rw-r--r-- | 20.6 KB |
bytesobject.c | -rw-r--r-- | 99.1 KB |
capsule.c | -rw-r--r-- | 7.2 KB |
cellobject.c | -rw-r--r-- | 4.8 KB |
classobject.c | -rw-r--r-- | 18.2 KB |
codeobject.c | -rw-r--r-- | 27.0 KB |
complexobject.c | -rw-r--r-- | 31.7 KB |
descrobject.c | -rw-r--r-- | 53.7 KB |
dict-common.h | -rw-r--r-- | 2.3 KB |
dictnotes.txt | -rw-r--r-- | 6.0 KB |
dictobject.c | -rw-r--r-- | 130.9 KB |
enumobject.c | -rw-r--r-- | 13.0 KB |
exceptions.c | -rw-r--r-- | 84.3 KB |
fileobject.c | -rw-r--r-- | 15.2 KB |
floatobject.c | -rw-r--r-- | 70.7 KB |
frameobject.c | -rw-r--r-- | 32.2 KB |
funcobject.c | -rw-r--r-- | 30.1 KB |
genobject.c | -rw-r--r-- | 67.8 KB |
iterobject.c | -rw-r--r-- | 8.9 KB |
listobject.c | -rw-r--r-- | 86.0 KB |
listsort.txt | -rw-r--r-- | 34.9 KB |
lnotab_notes.txt | -rw-r--r-- | 5.4 KB |
longobject.c | -rw-r--r-- | 167.1 KB |
memoryobject.c | -rw-r--r-- | 88.6 KB |
methodobject.c | -rw-r--r-- | 15.5 KB |
moduleobject.c | -rw-r--r-- | 22.0 KB |
namespaceobject.c | -rw-r--r-- | 7.3 KB |
object.c | -rw-r--r-- | 56.6 KB |
obmalloc.c | -rw-r--r-- | 79.4 KB |
odictobject.c | -rw-r--r-- | 76.8 KB |
rangeobject.c | -rw-r--r-- | 36.9 KB |
setobject.c | -rw-r--r-- | 72.7 KB |
sliceobject.c | -rw-r--r-- | 19.2 KB |
structseq.c | -rw-r--r-- | 12.9 KB |
tupleobject.c | -rw-r--r-- | 30.0 KB |
typeobject.c | -rw-r--r-- | 231.7 KB |
typeslots.inc | -rw-r--r-- | 3.9 KB |
typeslots.py | -rwxr-xr-x | 1.2 KB |
unicodectype.c | -rw-r--r-- | 7.5 KB |
unicodeobject.c | -rw-r--r-- | 452.8 KB |
unicodetype_db.h | -rw-r--r-- | 234.1 KB |
weakrefobject.c | -rw-r--r-- | 29.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...