aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-30 23:25:01 -0500
committerJack Nagel2014-03-30 23:30:26 -0500
commit72e965150d6b9b21188f141454c2f5ce20187552 (patch)
treec79ecded1bd9be9224759ffa395126daca19527f /Library/Formula/python.rb
parent4ad61c84da4c6b1d583dce8c98b381b45385788a (diff)
downloadhomebrew-72e965150d6b9b21188f141454c2f5ce20187552.tar.bz2
The cellar is not always under the prefix
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index cba83d0ce..aef1c8661 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -251,7 +251,7 @@ class Python < Formula
sys.path = [ p for p in sys.path
if (not p.startswith('/System') and
not p.startswith('#{HOMEBREW_PREFIX}/lib/python') and
- not (p.startswith('#{HOMEBREW_PREFIX}/Cellar/python') and p.endswith('site-packages'))) ]
+ not (p.startswith('#{rack}') and p.endswith('site-packages'))) ]
# LINKFORSHARED (and python-config --ldflags) return the
# full path to the lib (yes, "Python" is actually the lib, not a