Skip to content

Commit

Permalink
scripts: Set CONDA_PREFIX on enter-env.sh
Browse files Browse the repository at this point in the history
This is required for Renode package to run properly. This variable is
set automatically when activating an environment, but not if we work
with the base one, without activation.
  • Loading branch information
PiotrZierhoffer committed Oct 31, 2019
1 parent 59d3e71 commit 70dfb7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/enter-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ fi

. $SETUP_DIR/settings.sh

# If we activate an environment, CONDA_PREFIX is set. Otherwise use CONDA_DIR.
export CONDA_PREFIX="${CONDA_PREFIX:-$CONDA_DIR}"
export CONDA_DIR=$CONDA_PREFIX

echo " This script is: $SETUP_SRC"
echo " Firmware directory: $TOP_DIR"
echo " Build directory is: $BUILD_DIR"
Expand Down

0 comments on commit 70dfb7e

Please sign in to comment.