diff options
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index bcfc4a3b6..8cff7e0f2 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -138,7 +138,8 @@ class Python < Formula # Fix 2) # Remove brewed Python's hard-coded site-packages - sys.path.remove('#{site_packages_cellar}') + if '#{site_packages_cellar}' in sys.path: + sys.path.remove('#{site_packages_cellar}') # Fix 3) # For all Pythons: Tell about homebrew's site-packages location. |
