global
def load(path, wrap = false)
def load(path, wrap = false) if resolved = Bootsnap::LoadPathCache.load_path_cache.find(path) return load_without_bootsnap(resolved, wrap) end # load also allows relative paths from pwd even when not in $: if File.exist?(relative = File.expand_path(path)) return load_without_bootsnap(relative, wrap) end raise Bootsnap::LoadPathCache::CoreExt.make_load_error(path) rescue Bootsnap::LoadPathCache::ReturnFalse return false rescue Bootsnap::LoadPathCache::FallbackScan load_without_bootsnap(path, wrap) end