fix(health): properly use the value of $PYENV_VERSION (#23109)

This commit is contained in:
zeertzjq 2023-04-16 00:16:50 +08:00 committed by GitHub
parent 2e2101cf7b
commit 8c6f97bef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ local function check_for_pyenv()
info('pyenv: Path: ' .. pyenv_path)
local pyenv_root = os.getenv('PYENV_ROOT') and vim.fn.resolve('$PYENV_ROOT') or ''
local pyenv_root = os.getenv('PYENV_ROOT') and vim.fn.resolve(os.getenv('PYENV_ROOT')) or ''
if is_blank(pyenv_root) then
pyenv_root = vim.trim(system({ pyenv_path, 'root' }))