From cfd4a1d8e18604a0d34aa8b244b4e0c38bc1ba15 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 2 Jan 2026 13:36:59 +0100 Subject: [PATCH] Less likely to conflict with another env var --- .config/direnv/direnvrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/direnv/direnvrc b/.config/direnv/direnvrc index febd17c..135e5a1 100644 --- a/.config/direnv/direnvrc +++ b/.config/direnv/direnvrc @@ -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