Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #119 from mental/use-config-script-path

use environment from configuration to resolve scripts
  • Loading branch information...
commit e1660ec60233bcfcc7a893186efa8e57c7804654 2 parents 68f61dd + c7bb102
@mental mental authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/jruby/util/cli/ArgumentProcessor.java
View
2  src/org/jruby/util/cli/ArgumentProcessor.java
@@ -491,7 +491,7 @@ private String resolveScript(String scriptName) {
// keep going, try PATH
}
try {
- String path = System.getenv("PATH");
+ String path = config.getEnvironment().get("PATH");
if (path != null) {
String[] paths = path.split(System.getProperty("path.separator"));
for (int i = 0; i < paths.length; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.