From: Jack Jansen Date: Tue, 12 Dec 2000 22:39:04 +0000 (+0000) Subject: The ".pth" code knew about the layout of Python trees on unix and X-Git-Tag: v2.1a1~607 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d49056cd9076cde83ded11966f070f3f76ffd2a9;p=python The ".pth" code knew about the layout of Python trees on unix and windows, but not on the mac. Fixed. --- diff --git a/Lib/site.py b/Lib/site.py index 52ad11dbd6..512f00b3b6 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: