aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/provider/python
diff options
context:
space:
mode:
authorBarrett Ruth <62671086+barrett-ruth@users.noreply.github.com>2024-01-09 16:28:18 -0600
committerGitHub <noreply@github.com>2024-01-10 06:28:18 +0800
commitc67efe3a9c5b04b1909bf0051476ede495531066 (patch)
tree902649c9c2d9824d3c9a480c5b2123e877ad2d22 /runtime/lua/provider/python
parent595f684c5b37fe4c0ff1ae7514c935a6723fa644 (diff)
downloadrneovim-c67efe3a9c5b04b1909bf0051476ede495531066.tar.gz
rneovim-c67efe3a9c5b04b1909bf0051476ede495531066.tar.bz2
rneovim-c67efe3a9c5b04b1909bf0051476ede495531066.zip
fix(health): correctly expand and resolve PYENV_ROOT (#26953)
Diffstat (limited to 'runtime/lua/provider/python')
-rw-r--r--runtime/lua/provider/python/health.lua2
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' })