15 lines
328 B
Bash
Executable File
15 lines
328 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ ! -x .venv/bin/python ]; then
|
|
python3 -m venv .venv
|
|
fi
|
|
|
|
if ! .venv/bin/python -c "import aiohttp, bs4" >/dev/null 2>&1; then
|
|
.venv/bin/pip install --quiet --upgrade pip
|
|
.venv/bin/pip install --quiet -r requirements.txt
|
|
fi
|
|
|
|
exec .venv/bin/python app.py "$@"
|