Skip to content
Permalink
Browse files
[Truffle] Remove explicit loading from current directory.
  • Loading branch information
eregon committed Feb 23, 2015
1 parent 10fafff commit f70ef66e65b7e99471fdcf3a9dbb9364842f392a
Showing with 1 addition and 6 deletions.
  1. +1 −0 spec/truffle/tags/language/file_tags.txt
  2. +0 −6 truffle/src/main/java/org/jruby/truffle/runtime/subsystems/FeatureManager.java
@@ -1,2 +1,3 @@
windows:The __FILE__ pseudo-variable equals the absolute path of a file loaded by an absolute path
windows:The __FILE__ pseudo-variable equals the absolute path of a file loaded by a relative path
fails:The __FILE__ pseudo-variable equals the absolute path of a file loaded by a relative path
@@ -68,12 +68,6 @@ public boolean require(String path, String feature, RubyNode currentNode) throws
return true;
}

// Try as a path relative to the current directory

if (requireInPath(context.getRuntime().getCurrentDirectory(), feature, currentNode)) {
return true;
}

// Try each load path in turn

for (Object pathObject : context.getCoreLibrary().getLoadPath().slowToArray()) {

0 comments on commit f70ef66

Please sign in to comment.