From 5b7bdcc5fb3d03807f5cabdb784eee31ec20508b Mon Sep 17 00:00:00 2001 From: SamPosh Date: Thu, 20 Apr 2023 18:35:25 +0530 Subject: [PATCH] python path will be determined automatically --- lua/kickstart/plugins/dap/handler/python.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/dap/handler/python.lua b/lua/kickstart/plugins/dap/handler/python.lua index e366aaac..f0017704 100644 --- a/lua/kickstart/plugins/dap/handler/python.lua +++ b/lua/kickstart/plugins/dap/handler/python.lua @@ -1,8 +1,9 @@ local dap = require('dap') return function() + local python_install_path = vim.fn.exepath('python') dap.adapters.python = { type = "executable", - command = "/usr/local/bin/python", -- use "which python" command and provide the python path + command = python_install_path, -- use "which python" command will give you python installed path args = { "-m", "debugpy.adapter",