2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-17 21:25:37 +00:00
Comrad/bin/komrade-app
quadrismegistus b09b0533a8 updates
2020-09-14 17:47:39 +01:00

22 lines
327 B
Bash
Executable File

#!/bin/bash
##
# Run the mobile app
##
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path=`realpath "$SCRIPTPATH/../komrade/app/main.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
python "$path"
if command -v deactivate &> /dev/null
then
deactivate
fi