Skip to content

Commit

Permalink
ensure location of framework is on the LOAD_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-tech committed Jul 29, 2021
1 parent 6d9cfcd commit 90dd927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions msfconsole
Expand Up @@ -13,6 +13,7 @@ begin
Warning[:deprecated] = false
end

$LOAD_PATH.unshift(Pathname.new(__FILE__).realpath.expand_path.parent)
# @see https://github.com/rails/rails/blob/v3.2.17/railties/lib/rails/generators/rails/app/templates/script/rails#L3-L5
require Pathname.new(__FILE__).realpath.expand_path.parent.join('config', 'boot')
require 'msfenv'
Expand Down

0 comments on commit 90dd927

Please sign in to comment.