nightr/server/activate.sh
2019-04-06 17:40:51 +02:00

18 lines
335 B
Bash
Executable file

[ -d venv ]
FIRST_RUN=$?
# Create and enter virtual environment
if (( $FIRST_RUN )); then
echo Creating virtual environment
python3.7 -m venv venv
fi
source venv/bin/activate
# Install required python packages
echo Installing required Python packages
pip install -Ur requirements.txt
function run() {
python -m nightr
}