Skip to content

Commit

Permalink
Simple fix for dumb bug JRUBY-938...don't hardcode path separator for…
Browse files Browse the repository at this point in the history
… splitting RUBYLIB var.

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@3711 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed May 22, 2007
1 parent bcef6f6 commit c6d1869
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jruby/runtime/load/LoadService.java
Expand Up @@ -32,6 +32,7 @@
***** END LICENSE BLOCK *****/
package org.jruby.runtime.load;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;
Expand Down Expand Up @@ -156,7 +157,7 @@ public void init(List additionalDirectories) {
RubyString env_rubylib = runtime.newString("RUBYLIB");
if (env.has_key(env_rubylib).isTrue()) {
String rubylib = env.aref(env_rubylib).toString();
String[] paths = rubylib.split(":");
String[] paths = rubylib.split(File.pathSeparator);
for (int i = 0; i < paths.length; i++) {
addPath(paths[i]);
}
Expand Down

0 comments on commit c6d1869

Please sign in to comment.