mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
stop site.py from absolutizing zip store path
This commit is contained in:
parent
89f2356e11
commit
e68649e4b5
1 changed files with 3 additions and 0 deletions
3
third_party/python/Lib/site.py
vendored
3
third_party/python/Lib/site.py
vendored
|
@ -123,6 +123,9 @@ def removeduppaths():
|
||||||
# Filter out duplicate paths (on case-insensitive file systems also
|
# Filter out duplicate paths (on case-insensitive file systems also
|
||||||
# if they only differ in case); turn relative paths into absolute
|
# if they only differ in case); turn relative paths into absolute
|
||||||
# paths.
|
# paths.
|
||||||
|
if dir.startswith("zip!"): # don't absolutize, look within the APE!
|
||||||
|
L.append(dir)
|
||||||
|
continue
|
||||||
dir, dircase = makepath(dir)
|
dir, dircase = makepath(dir)
|
||||||
if not dircase in known_paths:
|
if not dircase in known_paths:
|
||||||
L.append(dir)
|
L.append(dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue