Fix $LOAD_PATH

This commit is contained in:
Brendan Coles
2017-12-08 07:03:27 +00:00
parent 447f995d10
commit 946f593b5e

4
beef
View File

@@ -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