From e68649e4b562032f2222124f59eae4781f8ffed4 Mon Sep 17 00:00:00 2001 From: ahgamut <41098605+ahgamut@users.noreply.github.com> Date: Wed, 18 Aug 2021 06:41:35 +0530 Subject: [PATCH] stop site.py from absolutizing zip store path --- third_party/python/Lib/site.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third_party/python/Lib/site.py b/third_party/python/Lib/site.py index 66ccbe414..c9b30c42e 100644 --- a/third_party/python/Lib/site.py +++ b/third_party/python/Lib/site.py @@ -123,6 +123,9 @@ def removeduppaths(): # Filter out duplicate paths (on case-insensitive file systems also # if they only differ in case); turn relative paths into absolute # paths. + if dir.startswith("zip!"): # don't absolutize, look within the APE! + L.append(dir) + continue dir, dircase = makepath(dir) if not dircase in known_paths: L.append(dir)