Detect alt headers in locally built kompiler
This commit is contained in:
@@ -31,6 +31,14 @@ public class PathUtil {
|
|||||||
return answer.exists() ? answer : null;
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user