]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The ".pth" code knew about the layout of Python trees on unix and
authorMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 13:52:02 +0000 (13:52 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 13:52:02 +0000 (13:52 +0000)
windows, but not on the mac. Fixed.

Lib/site.py
Misc/NEWS

index dc1b6147aca803abadb2341480d299e4eaea392d..06876589982b99609ee0d2234c9066ed5fdcac87 100644 (file)
@@ -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:
index 7690d343c742efc5e60c53ca86658634aa9cb50d..f5683fd8288be64b280eac43c838fb6f6a11a379 100644 (file)
--- 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?
 =========================