Return True if the current Python executable is in a conda env
()
| 17 | |
| 18 | |
| 19 | def _is_conda_environment(): |
| 20 | """Return True if the current Python executable is in a conda env""" |
| 21 | # TODO: does this need to change on windows? |
| 22 | conda_history = os.path.join(sys.prefix, 'conda-meta', 'history') |
| 23 | return os.path.exists(conda_history) |
| 24 | |
| 25 | |
| 26 | def _get_conda_executable(): |