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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d49056cd9076cde83ded11966f070f3f76ffd2a9;p=thirdparty%2FPython%2Fcpython.git 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 52ad11dbd615..512f00b3b60e 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: