From e37c9fb7ed30c1beec21e9864c07c17d6917beef Mon Sep 17 00:00:00 2001 From: parrt Date: Wed, 7 Nov 2018 12:56:03 -0800 Subject: [PATCH] add anaconda3 to search path. --- .../org/antlr/v4/test/runtime/python/BasePythonTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime-testsuite/test/org/antlr/v4/test/runtime/python/BasePythonTest.java b/runtime-testsuite/test/org/antlr/v4/test/runtime/python/BasePythonTest.java index dae677102..06cbfa1af 100644 --- a/runtime-testsuite/test/org/antlr/v4/test/runtime/python/BasePythonTest.java +++ b/runtime-testsuite/test/org/antlr/v4/test/runtime/python/BasePythonTest.java @@ -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;