aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/config.rb')
-rw-r--r--Library/Homebrew/config.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb
index 38d7c8043..ef07434de 100644
--- a/Library/Homebrew/config.rb
+++ b/Library/Homebrew/config.rb
@@ -46,5 +46,8 @@ unless defined? HOMEBREW_LIBRARY_PATH
HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent
end
+# Load path to vendored gems used by Homebrew
+HOMEBREW_GEMS_LOAD_PATH = ENV["HOMEBREW_GEMS_LOAD_PATH"]
+
# Load path used by standalone scripts to access the Homebrew code base
-HOMEBREW_LOAD_PATH = HOMEBREW_LIBRARY_PATH
+HOMEBREW_LOAD_PATH = [HOMEBREW_LIBRARY_PATH, *HOMEBREW_GEMS_LOAD_PATH].join(":")