12 lines
226 B
Bash
12 lines
226 B
Bash
#!/bin/bash
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
SCRIPT_DIR=${SCRIPT_DIR:-"."}
|
|
if [ ! -e ".venv" ]
|
|
then
|
|
python3 -m venv .venv
|
|
fi
|
|
|
|
source .venv/bin/activate
|
|
pip3 install -r requirements.txt &> /dev/null
|
|
python3 "$SCRIPT_DIR"/server.py
|