fixed python path if venv env variable is set
This commit is contained in:
parent
350d42333a
commit
a64aeb9dd6
@ -45,7 +45,7 @@ end
|
|||||||
local function getPythonEnv()
|
local function getPythonEnv()
|
||||||
local venv = os.getenv("VIRTUAL_ENV")
|
local venv = os.getenv("VIRTUAL_ENV")
|
||||||
if venv ~= nil then
|
if venv ~= nil then
|
||||||
return string.format("%s\\bin\\python.exe", venv)
|
return string.format("%s/%s", venv, getVenvSuffix())
|
||||||
end
|
end
|
||||||
|
|
||||||
local cwd = vim.fn.getcwd()
|
local cwd = vim.fn.getcwd()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user