You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
469 B
Plaintext
20 lines
469 B
Plaintext
##
|
|
# Run THE OPERATOR
|
|
##
|
|
|
|
# funcs (mac doesnt have realpath)
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
|
|
path_conda="`realpath ~/komrade/lib/miniconda3`"
|
|
path_venv="`realpath ~/komrade/code/venv`"
|
|
path_repo="`realpath ~/komrade/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/komrade/backend/switchboard.py
|