flake: check for existance of python project

This commit is contained in:
2026-01-26 20:28:23 -05:00
parent aa9dc58259
commit 7bd9ef1230

View File

@@ -36,6 +36,16 @@
source .env
set +a
fi
if [ ! -d .venv ]; then
echo "Creating Python virtual environment in .venv"
python3 -m venv .venv
fi
if compgen -G "app/*.py" > /dev/null; then
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
fi
'';
};
});