From a64aeb9dd697a7adae4ac69c9f660dbd116083ac Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 3 Nov 2022 11:59:44 +0100 Subject: [PATCH] fixed python path if venv env variable is set --- lua/setup/my_dap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/setup/my_dap.lua b/lua/setup/my_dap.lua index 7236c4d..f8373d0 100644 --- a/lua/setup/my_dap.lua +++ b/lua/setup/my_dap.lua @@ -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()