The cellar is not always under the prefix

This commit is contained in:
Jack Nagel 2014-03-30 23:25:01 -05:00
parent c203b869dd
commit b4fd618ff8
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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