summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 23:10:35 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 23:10:35 (GMT)
commite0154ed7ff9cf476d93cc20b49b69ca5d39cf41b (patch)
tree03e428336b3a64775d496c39ce8e039f4f789a81 /Lib
parent6c2633e919b2353341fd06407bfb4c0a993dcaeb (diff)
downloadcpython-e0154ed7ff9cf476d93cc20b49b69ca5d39cf41b.zip
cpython-e0154ed7ff9cf476d93cc20b49b69ca5d39cf41b.tar.gz
cpython-e0154ed7ff9cf476d93cc20b49b69ca5d39cf41b.tar.bz2
Fix issue #4865: add /Library/Python/2.7/site-packages to
sys.path on OSX, to make it easier to share (some) installed packages between the system install and a user install.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/site.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 21c7db2..abe6687 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -275,13 +275,15 @@ def addsitepackages(known_paths):
if sys.platform == "darwin":
# for framework builds *only* we add the standard Apple
- # locations. Currently only per-user, but /Library and
- # /Network/Library could be added too
+ # locations.
if 'Python.framework' in prefix:
sitedirs.append(
os.path.expanduser(
os.path.join("~", "Library", "Python",
sys.version[:3], "site-packages")))
+ sitedirs.append(
+ os.path.join("/Library", "Python",
+ sys.version[:3], "site-packages"))
for sitedir in sitedirs:
if os.path.isdir(sitedir):