The cellar is not always under the prefix
This commit is contained in:
parent
c203b869dd
commit
b4fd618ff8
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue