Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/ruby/jruby/kernel/kernel.rb
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ def require_relative(relative_arg)
file = $` # just the filename
raise LoadError, "cannot infer basepath" if /\A\((.*)\)/ =~ file # eval etc.

absolute_feature = File.expand_path(relative_arg, File.dirname(file))
absolute_feature = File.expand_path(relative_arg, File.dirname(File.realpath(file)))

require absolute_feature
end

0 comments on commit 8305707

Please sign in to comment.