Skip to content

Instantly share code, notes, and snippets.

@mkristian
Last active October 15, 2015 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkristian/e5629c261c223f56542f to your computer and use it in GitHub Desktop.
Save mkristian/e5629c261c223f56542f to your computer and use it in GitHub Desktop.
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