Skip to content

Commit

Permalink
split long line into two ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
0Xellos committed Feb 19, 2018
1 parent 84776c7 commit d001e74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodeenv.py
Expand Up @@ -1010,7 +1010,9 @@ def get_env_dir(opt, args):
if opt.python_virtualenv:
if hasattr(sys, 'real_prefix'):
res = sys.prefix
elif hasattr(sys, 'base_prefix') and (sys.base_prefix != sys.prefix or 'CONDA_PREFIX' in os.environ):
elif hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix:
res = sys.prefix
elif 'CONDA_PREFIX' in os.environ:
res = sys.prefix
else:
logger.error('No python virtualenv is available')
Expand Down

0 comments on commit d001e74

Please sign in to comment.