From d49056cd9076cde83ded11966f070f3f76ffd2a9 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 12 Dec 2000 22:39:04 +0000 Subject: The ".pth" code knew about the layout of Python trees on unix and windows, but not on the mac. Fixed. --- Lib/site.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/site.py b/Lib/site.py index 52ad11d..512f00b 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -122,6 +122,8 @@ for prefix in prefixes: "python" + sys.version[:3], "site-packages"), makepath(prefix, "lib", "site-python")] + elif os.sep == ':': + sitedirs = [makepath(prefix, "lib", "site-packages")] else: sitedirs = [prefix] for sitedir in sitedirs: -- cgit v0.12