Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -645,7 +645,12 @@ public NativeSockets getNativeSockets() {
public Object execute(final org.jruby.ast.RootNode rootNode) {
coreLibrary.getGlobalVariablesObject().define("$0", toTruffle(runtime.getGlobalVariables().get("$0")), 0);

final String inputFile = new File(rootNode.getPosition().getFile()).getAbsolutePath();
String inputFile = rootNode.getPosition().getFile();

if (!inputFile.equals("-e")) {
inputFile = new File(inputFile).getAbsolutePath();
}

final Source source;

try {

0 comments on commit c54b11b

Please sign in to comment.