From 946f593b5e5553791b2756c159f7870b26949d84 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Fri, 8 Dec 2017 07:03:27 +0000 Subject: [PATCH] Fix $LOAD_PATH --- beef | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beef b/beef index 2ea7b65ca..7d5dcaf88 100755 --- a/beef +++ b/beef @@ -17,8 +17,8 @@ if RUBY_VERSION < '2.2' exit 1 end -$:.unshift(File.join(File.expand_path(File.dirname(__FILE__)), '.')) -$root_dir = File.expand_path('..', __FILE__) +$root_dir = File.join(File.expand_path(File.dirname(File.realpath(__FILE__))), '.') +$:.unshift($root_dir) $home_dir = File.expand_path('~/.beef', __FILE__).freeze # @note Require core loader's