Files
configs/scripts/with-env.sh
2024-10-05 10:13:19 +02:00

10 lines
252 B
Bash

if [ ! -d "$ROOT/.venv" ]; then
echo "Creating virtual environment..."
python3 -m venv $ROOT/.venv
source $ROOT/.venv/bin/activate
pip install -r $ROOT/requirements.txt
touch .venv/touchfile
else
source $ROOT/.venv/bin/activate
fi