summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2001-03-31 13:52:02 +0000
committerMoshe Zadka <moshez@math.huji.ac.il>2001-03-31 13:52:02 +0000
commitbd13e8528b8dc769d60de7aa18134b9c912b9445 (patch)
tree5c586cd735e2e177c423a4133205b7189eafe42e
parenta8f9bb48a5fb8f9ef84fd9269d0850c30603341f (diff)
downloadcpython-bd13e8528b8dc769d60de7aa18134b9c912b9445.tar.gz
The ".pth" code knew about the layout of Python trees on unix and
windows, but not on the mac. Fixed.
-rw-r--r--Lib/site.py2
-rw-r--r--Misc/NEWS3
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/site.py b/Lib/site.py
index dc1b6147ac..0687658998 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 7690d343c7..f5683fd828 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -121,6 +121,9 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&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?
=========================