commit c67efe3a9c5b04b1909bf0051476ede495531066 parent 595f684c5b37fe4c0ff1ae7514c935a6723fa644 Author: Barrett Ruth <62671086+barrett-ruth@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:28:18 -0600 fix(health): correctly expand and resolve PYENV_ROOT (#26953) Diffstat:
| M | runtime/lua/provider/python/health.lua | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/lua/provider/python/health.lua b/runtime/lua/provider/python/health.lua @@ -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' })