Skip to content

Commit

Permalink
Improve how we detect if we are running under Anaconda
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Dec 29, 2017
1 parent 33bcadf commit 2548be3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions spyder/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ def is_kde_desktop():


def is_anaconda():
"Detect if we are running under Anaconda."
for var in os.environ:
if var.startswith('CONDA'):
return True
return False
"
Detect if we are running under Anaconda.

Taken from https://stackoverflow.com/a/47610844/438386
"
is_conda = osp.exists(osp.join(sys.prefix, 'conda-meta'))
return is_conda

0 comments on commit 2548be3

Please sign in to comment.