From: Moshe Zadka Date: Sat, 31 Mar 2001 13:52:02 +0000 (+0000) Subject: The ".pth" code knew about the layout of Python trees on unix and X-Git-Tag: v2.0.1c1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a56667a9066b1f28ef6578f4f86b9917b07ac01;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 dc1b6147aca8..06876589982b 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: diff --git a/Misc/NEWS b/Misc/NEWS index 7690d343c742..f5683fd8288b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -121,6 +121,9 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&group_id=5470&atid - Made statcache.forget_dir more portable +- In site.py, the ".pth" code knew about the layout of Python trees on + unix and windows, but not on the mac. Fixed. + What's New in Python 2.0? =========================