brew/Library/Homebrew/load_path.rb

18 lines
345 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: true
# frozen_string_literal: true
2018-09-02 23:30:07 +02:00
require "pathname"
2019-04-19 21:46:20 +09:00
HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath.freeze
2018-09-02 23:30:07 +02:00
$LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s
require "vendor/bundle/bundler/setup"
if ENV["HOMEBREW_BOOTSNAP"]
require "homebrew_bootsnap"
else
$LOAD_PATH.select! { |d| Pathname(d).directory? }
$LOAD_PATH.uniq!
end