Skip to content

Commit

Permalink
in scripts/utils.py account for case where no conda environment is sp…
Browse files Browse the repository at this point in the history
…ecified.
  • Loading branch information
jnwei committed May 13, 2024
1 parent 97dae6c commit d8117ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import sys
from pathlib import Path


CONDA_ENV_BINARY_PATH= Path(os.environ['CONDA_PREFIX']) / 'bin'
if 'CONDA_PREFIX' in os.environ:
CONDA_ENV_BINARY_PATH= Path(os.environ['CONDA_PREFIX']) / 'bin'
else:
CONDA_ENV_BINARY_PATH = Path('/bin')

def add_data_args(parser: argparse.ArgumentParser):
parser.add_argument(
Expand Down

0 comments on commit d8117ce

Please sign in to comment.