2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-13 07:10:49 +00:00
Comrad/bin/comrad-cli
quadrismegistus e973e8ed08 changes
2020-09-29 14:20:11 +01:00

18 lines
459 B
Plaintext
Executable File

##
# Run the command line app
##
# 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`"
source $path_conda/etc/profile.d/conda.sh
export PATH="$path_conda/bin:$PATH"
conda activate $path_venv
python -m pip install -r $path_repo/requirements.txt
python $path_repo/comrad/cli/cli.py