add conda env option on list

This commit is contained in:
CloverHearts 2017-09-11 12:35:24 +09:00
parent 8dfb33b115
commit 9b79726947

View file

@ -235,8 +235,12 @@ public class PythonCondaInterpreter extends Interpreter {
private String runCondaList() throws IOException, InterruptedException {
List<String> commands = new ArrayList<String>();
commands.add("conda");
commands.add("list");
commands.add(0, "conda");
commands.add(1, "list");
if (!getCurrentCondaEnvName().isEmpty()) {
commands.add(2, "-n");
commands.add(3, getCurrentCondaEnvName());
}
return runCondaCommandForTableOutput("Installed Package List", commands);
}