add anaconda3 to search path.
This commit is contained in:
parent
1eca79ec3a
commit
e37c9fb7ed
|
@ -514,7 +514,10 @@ public abstract class BasePythonTest implements RuntimeTestSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String locateTool(String tool) {
|
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) {
|
for(String root : roots) {
|
||||||
if(new File(root + tool).exists()) {
|
if(new File(root + tool).exists()) {
|
||||||
return root+tool;
|
return root+tool;
|
||||||
|
|
Loading…
Reference in New Issue