diff options
author | Barrett Ruth <62671086+barrett-ruth@users.noreply.github.com> | 2024-01-09 16:28:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 06:28:18 +0800 |
commit | c67efe3a9c5b04b1909bf0051476ede495531066 (patch) | |
tree | 902649c9c2d9824d3c9a480c5b2123e877ad2d22 | |
parent | 595f684c5b37fe4c0ff1ae7514c935a6723fa644 (diff) | |
download | rneovim-c67efe3a9c5b04b1909bf0051476ede495531066.tar.gz rneovim-c67efe3a9c5b04b1909bf0051476ede495531066.tar.bz2 rneovim-c67efe3a9c5b04b1909bf0051476ede495531066.zip |
fix(health): correctly expand and resolve PYENV_ROOT (#26953)
-rw-r--r-- | runtime/lua/provider/python/health.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/provider/python/health.lua b/runtime/lua/provider/python/health.lua index 7fc4006fc8..0b6edf5b42 100644 --- 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' }) |