2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-16 00:12:48 +00:00
Comrad/bin/komrade-activate

26 lines
457 B
Plaintext
Raw Normal View History

2020-09-25 12:49:38 +00:00
export KOMRADE_SHOW_LOG=0
2020-09-25 13:11:46 +00:00
echo "`which python`"
2020-09-25 12:49:38 +00:00
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pathvenv=`realpath "$SCRIPTPATH/../venv"`
pathconda=`realpath "$SCRIPTPATH/../../lib/miniconda3"`
2020-09-25 13:11:46 +00:00
echo $SCRIPTPATH
echo $pathvenv
echo $pathconda
source $pathconda/etc/profile.d/conda.sh
2020-09-25 12:49:38 +00:00
export PATH="$pathconda/bin:$PATH"
2020-09-25 13:11:46 +00:00
#echo $PATH
2020-09-25 12:49:38 +00:00
2020-09-25 13:11:46 +00:00
echo "`which conda`"
conda activate
2020-09-25 12:49:38 +00:00
conda activate "$pathvenv"
2020-09-25 13:11:46 +00:00
#echo "`which python`"