Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -47,7 +47,13 @@ public AbsolutePathNode(AbsolutePathNode prev) {
public RubyString absolutePath(RubyString path) {
notDesignedForCompilation();

return getContext().makeString(new File(path.toString()).getAbsolutePath());
String absolute = new File(path.toString()).getAbsolutePath();

if (getContext().isRunningOnWindows()) {
absolute = absolute.replace('\\', '/');
}

return getContext().makeString(absolute);
}

}

0 comments on commit 6af6f90

Please sign in to comment.