fixed python path if venv env variable is set

This commit is contained in:
Oliver Hartmann 2022-11-03 11:59:44 +01:00
parent 350d42333a
commit a64aeb9dd6

View File

@ -45,7 +45,7 @@ end
local function getPythonEnv()
local venv = os.getenv("VIRTUAL_ENV")
if venv ~= nil then
return string.format("%s\\bin\\python.exe", venv)
return string.format("%s/%s", venv, getVenvSuffix())
end
local cwd = vim.fn.getcwd()