Lines 47-53
Link Here
|
47 |
|
47 |
|
48 |
// Find JMeter home dir |
48 |
// Find JMeter home dir |
49 |
StringTokenizer tok = new StringTokenizer(cp, File.pathSeparator); |
49 |
StringTokenizer tok = new StringTokenizer(cp, File.pathSeparator); |
50 |
if (tok.countTokens() == 1) { |
50 |
if (tok.countTokens() == 1 || System.getProperty("os.name").toLowerCase().startsWith("mac os x") && tok.countTokens() == 2) { |
51 |
File jar = new File(tok.nextToken()); |
51 |
File jar = new File(tok.nextToken()); |
52 |
try { |
52 |
try { |
53 |
jmDir = jar.getCanonicalFile().getParentFile().getParent(); |
53 |
jmDir = jar.getCanonicalFile().getParentFile().getParent(); |