1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 10:00:27 +01:00

Less likely to conflict with another env var

This commit is contained in:
2026-01-02 13:36:59 +01:00
parent 569a58ed3c
commit cfd4a1d8e1

View File

@@ -5,12 +5,12 @@ layout_uv() {
if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
log_status "No virtual environment exists. Executing \`uv venv\` to create one."
if [[ -z $PYTHON_VERSION ]]; then
if [[ -z $PYTHON_WANTED ]]; then
# No Python version specified, just create a virtualenv
uv venv
else
# Specific Python version requested, use that; will download if needed
uv venv --python $PYTHON_VERSION
uv venv --python $PYTHON_WANTED
fi
VIRTUAL_ENV="$(pwd)/.venv"
fi