2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-16 00:12:48 +00:00
Comrad/bin/comrad-cli
2020-10-05 15:09:41 +01:00

21 lines
597 B
Bash
Executable File

#!/bin/bash
# funcs (mac doesnt have realpath)
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
path_conda="`realpath ~/comrad/lib/miniconda3`"
path_venv="`realpath ~/comrad/code/venv`"
path_repo="`realpath ~/comrad/code`"
path_lib="`realpath ~/comrad/lib`"
path_themis="$path_lib/themis/build"
source $path_conda/etc/profile.d/conda.sh
export PATH="$path_conda/bin:$PATH"
conda activate $path_venv
export LD_LIBRARY_PATH="$path_themis:$LD_LIBRARY_PATH"
python -m pip install -r $path_repo/requirements.txt -q
export COMRAD_SHOW_LOG=0
python $path_repo/comrad/cli/cli.py $*