From 038676b5223cd4b24f8cb263ce98f69e1b23245d Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 6 Mar 2026 05:40:40 +0300 Subject: [PATCH] virtualenv: create relative compat symlinks --- bin/pyenv-virtualenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index 5528dec..988f8c8 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -632,7 +632,7 @@ fi ## Create symlink in the `versions` directory for backward compatibility if [ -d "${VIRTUALENV_PATH}" ] && [ -n "${COMPAT_VIRTUALENV_PATH}" ]; then # Overwrite an existing link, can happen if running with -f - ln -fsn "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}" + ln -fsn "${VIRTUALENV_NAME}" "${COMPAT_VIRTUALENV_PATH}" fi if [ ! -e "${VIRTUALENV_PATH}/bin/pydoc" ]; then