From 2a56667a9066b1f28ef6578f4f86b9917b07ac01 Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Sat, 31 Mar 2001 13:52:02 +0000 Subject: [PATCH] The ".pth" code knew about the layout of Python trees on unix and windows, but not on the mac. Fixed. --- Lib/site.py | 2 ++ Misc/NEWS | 3 +++ 2 files changed, 5 insertions(+) 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? ========================= -- 2.47.3