Skip to content

Commit

Permalink
fix: debugpy path on Windows (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueDrink9 committed Nov 22, 2023
1 parent f0cd12f commit ab613d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/mason-nvim-dap/mappings/configurations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ M.python = {
request = 'launch',
name = 'Python: Launch file',
program = '${file}', -- This configuration will launch the current file if used.
pythonPath = venv_path and (venv_path .. '/bin/python') or nil,
-- venv on Windows uses Scripts instead of bin
pythonPath = venv_path
and ((vim.fn.has('win32') == 1 and venv_path .. '/Scripts/python') or venv_path .. '/bin/python')
or nil,
},
}

Expand Down

0 comments on commit ab613d8

Please sign in to comment.