16 lines
423 B
Bash
Executable File
16 lines
423 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ ! -d ".venv" ]; then
|
|
echo "Erstelle virtuelle Umgebung..."
|
|
python3.12 -m venv .venv
|
|
.venv/bin/pip install -r requirements-dev.txt -q
|
|
.venv/bin/playwright install chromium
|
|
fi
|
|
|
|
# Clear stale bytecode before each run to avoid executing outdated .pyc files
|
|
find src -name "*.pyc" -delete 2>/dev/null || true
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 .venv/bin/python main.py "$@"
|