aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/python_dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-08-19 13:54:07 -0500
committerJack Nagel2013-08-19 13:54:09 -0500
commit1ffd40821a9f39a48f20dfcb672468d10796b50b (patch)
treede82bd274089e1c1ce6222e12a18f629272d8685 /Library/Homebrew/requirements/python_dependency.rb
parent52ace99f14a9390f5bf71370d616f2ed6b98c034 (diff)
downloadbrew-1ffd40821a9f39a48f20dfcb672468d10796b50b.tar.bz2
which in requirements always uses ORIGINAL_PATHS now
Fixes Homebrew/homebrew#22002.
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index 6a18883df..6c613a595 100644
--- a/Library/Homebrew/requirements/python_dependency.rb
+++ b/Library/Homebrew/requirements/python_dependency.rb
@@ -120,9 +120,7 @@ class PythonInstalled < Requirement
# Note, we don't support homebrew/versions/pythonXX.rb, though.
Formula.factory(@name).opt_prefix/"bin/python#{@min_version.major}"
else
- # Using the ORIGINAL_PATHS here because in superenv, the user
- # installed external Python is not visible otherwise.
- which(@name, ORIGINAL_PATHS.join(File::PATH_SEPARATOR))
+ which(@name)
end
end
end