Skip to content

Commit

Permalink
allow use of base environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Kaczmarzyk committed Nov 1, 2018
1 parent 7f48b3e commit 000246a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurodocker/interfaces/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Miniconda(_BaseInterface):
_pretty_name = 'Miniconda'

_installed = False
_environments = set()
_environments = {'base'}
_env_set = False

def __init__(self, *args, create_env=None, use_env=None,
Expand Down Expand Up @@ -223,7 +223,7 @@ def __init__(self, *args, create_env=None, use_env=None,
"cannot conda or pip install when creating environment from"
" yaml file")

if self.use_env is not None and not Miniconda._installed:
if self.use_env is not None and self.use_env != "base" and not Miniconda._installed:
self._environments.add(self.use_env)
Miniconda._installed = True
Miniconda._env_set = True
Expand Down

0 comments on commit 000246a

Please sign in to comment.