From 72e965150d6b9b21188f141454c2f5ce20187552 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 30 Mar 2014 23:25:01 -0500 Subject: The cellar is not always under the prefix --- Library/Formula/python3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/python3.rb') diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index b0d6bea13..6a85dfaaa 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -232,7 +232,7 @@ class Python3 < 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 -- cgit v1.2.3