aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-08-19 13:54:07 -0500
committerJack Nagel2013-08-19 13:54:09 -0500
commit042e84cc64be2fd866ba943f9ffeb97afe9d0d02 (patch)
treef6d57417c64b27d348654e89d718e955df29c22f
parent13c2776795a4cb233924914b558bab9a5e4beea2 (diff)
downloadhomebrew-042e84cc64be2fd866ba943f9ffeb97afe9d0d02.tar.bz2
which in requirements always uses ORIGINAL_PATHS now
Fixes #22002.
-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