Detect alt headers in locally built kompiler

This commit is contained in:
Maxim Shafirov
2012-01-30 21:07:12 +04:00
parent 88d53d7734
commit d14e38c7d6
@@ -30,6 +30,14 @@ public class PathUtil {
File answer = lib.getParentFile();
return answer.exists() ? answer : null;
}
File current = new File("").getAbsoluteFile(); // CWD
do {
File atDevHome = new File(current, "dist/kotlinc");
if (atDevHome.exists()) return atDevHome;
current = current.getParentFile();
} while (current != null);
return null;
}