Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -70,7 +70,10 @@ public boolean require(String feature, Node currentNode) throws IOException {
// Try each load path in turn

for (Object pathObject : context.getCoreLibrary().getLoadPath().slowToArray()) {
final String loadPath = pathObject.toString();
String loadPath = pathObject.toString();
if (!isAbsolutePath(loadPath)) {
loadPath = RubyFile.expandPath(context, loadPath);
}

if (requireInPath(loadPath, feature, currentNode)) {
return true;

0 comments on commit ea53fd6

Please sign in to comment.