Last active
October 15, 2015 17:36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/src/main/ruby/jruby/kernel/kernel.rb b/core/src/main/ruby/jruby/kernel/kernel.rb | |
index b4dd5e13..0181580 100644 | |
--- a/core/src/main/ruby/jruby/kernel/kernel.rb | |
+++ b/core/src/main/ruby/jruby/kernel/kernel.rb | |
@@ -11,6 +11,8 @@ module Kernel | |
absolute_feature = File.expand_path(relative_arg, File.dirname(File.realpath(file))) | |
require absolute_feature | |
+ rescue Errno::ENOENT | |
+ require File.join(File.dirname(file), relative_arg) | |
end | |
def exec(*args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment