add anaconda3 to search path.

This commit is contained in:
parrt 2018-11-07 12:56:03 -08:00
parent 1eca79ec3a
commit e37c9fb7ed
1 changed files with 4 additions and 1 deletions

View File

@ -514,7 +514,10 @@ public abstract class BasePythonTest implements RuntimeTestSupport {
}
private String locateTool(String tool) {
String[] roots = { "/opt/local/bin", "/usr/bin/", "/usr/local/bin/" };
String[] roots = {
"/opt/local/bin", "/usr/bin/", "/usr/local/bin/",
"/Users/"+System.getProperty("user.name")+"/anaconda3/bin/"
};
for(String root : roots) {
if(new File(root + tool).exists()) {
return root+tool;