fix(health): correctly expand and resolve PYENV_ROOT (#26953)

This commit is contained in:
Barrett Ruth 2024-01-09 16:28:18 -06:00 committed by GitHub
parent 595f684c5b
commit c67efe3a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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