Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Remove explicit loading from current directory.
  • Loading branch information
eregon committed Feb 23, 2015
1 parent 10fafff commit f70ef66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions spec/truffle/tags/language/file_tags.txt
@@ -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
Expand Up @@ -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()) {
Expand Down

0 comments on commit f70ef66

Please sign in to comment.