nightr/server/activate.sh
Casper V. Kristensen 9bce7205d8
Merge and stuff.
2019-04-06 14:40:49 +02:00

19 lines
336 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
}