We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3740acc commit 15e6902Copy full SHA for 15e6902
q2cli/util.py
@@ -13,10 +13,10 @@ class OutOfDisk(Exception):
13
14
def get_app_dir():
15
import os
16
- conda_prefix = os.environ.get('CONDA_PREFIX')
+ conda_prefix = os.environ.get('CONDA_PREFIX', '')
17
environment_cache = os.path.join(conda_prefix, 'var', 'q2cli')
18
- if conda_prefix is not None and (os.access(conda_prefix, os.W_OK | os.X_OK)
19
- or os.path.exists(environment_cache)):
+ if conda_prefix != '' and (os.access(conda_prefix, os.W_OK | os.X_OK)
+ or os.path.exists(environment_cache)):
20
return environment_cache
21
else:
22
import click
0 commit comments