def _find_conda_env_paths_from_conda(mgr):
<EOL>if not mgr.use_conda_directly:<EOL><INDENT>return []<EOL><DEDENT>mgr.log.debug("<STR_LIT>")<EOL>import subprocess<EOL>import json<EOL>try:<EOL><INDENT>p = subprocess.Popen(<EOL>['<STR_LIT>', '<STR_LIT>', '<STR_LIT:list>', '<STR_LIT>'],<EOL>stdin=subprocess.PIPE,<EOL>stdout=subprocess.PIPE)<EOL>comm = p.communicate()<EOL>output = comm[<NUM_LIT:0>].decode()<EOL>if p.returncode != <NUM_LIT:0> or len(output) == <NUM_LIT:0>:<EOL><INDENT>mgr.log.error(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", str(comm))<EOL>return []<EOL><DEDENT><DEDENT>except FileNotFoundError:<EOL><INDENT>mgr.log.error("<STR_LIT>")<EOL>return []<EOL><DEDENT>output = json.loads(output)<EOL>envs = output["<STR_LIT>"]<EOL>return envs<EOL>
Returns a list of path as given by `conda env list --json`.

    Returns empty list, if conda couldn't be called.