2020-09-14 13:38:27 +00:00
|
|
|
##
|
|
|
|
# Run the command line app
|
|
|
|
##
|
2020-09-14 16:17:50 +00:00
|
|
|
|
2020-09-28 13:17:52 +00:00
|
|
|
# funcs (mac doesnt have realpath)
|
|
|
|
realpath() {
|
|
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
|
|
}
|
2020-09-14 16:17:50 +00:00
|
|
|
|
2020-09-29 13:09:56 +00:00
|
|
|
path_conda="`realpath ~/comrad/lib/miniconda3`"
|
|
|
|
path_venv="`realpath ~/comrad/code/venv`"
|
|
|
|
path_repo="`realpath ~/comrad/code`"
|
2020-09-14 13:38:27 +00:00
|
|
|
|
2020-09-28 13:17:52 +00:00
|
|
|
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
|
2020-09-29 13:09:56 +00:00
|
|
|
python $path_repo/comrad/cli/cli.py
|