2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-13 07:10:49 +00:00
Comrad/bin/comrad-op

19 lines
453 B
Plaintext
Raw Normal View History

2020-09-29 18:20:51 +00:00
#!/bin/bash
2020-09-17 06:29:28 +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 18:20:51 +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 22:39:10 +00:00
2020-09-14 13:06:50 +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/backend/switchboard.py