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.
Comrad/bin/komrade-app

31 lines
558 B
Bash

#!/bin/bash
##
# Run the mobile app
##
export KOMRADE_SHOW_LOG=0
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "`which komrade-activate`"
echo "`which komrade-activate`"
# echo "`which pip`"
conda info
path=`realpath "$SCRIPTPATH/../komrade/app/main.py"`
pathreqs=`realpath "$SCRIPTPATH/../requirements.txt"`
python -m pip install -r "$pathreqs"
# pathvenv=`realpath "$SCRIPTPATH/../../venv/bin/activate"`
# source $pathvenv
python "$path" $*
#if command -v deactivate &> /dev/null
#then
# deactivate
#fi