We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b509fd commit e23aadaCopy full SHA for e23aada
1 file changed
lua/dap-python.lua
@@ -48,13 +48,22 @@ end
48
49
50
local get_python_path = function()
51
- local venv_path = os.getenv('VIRTUAL_ENV') or os.getenv('CONDA_PREFIX')
+ local venv_path = os.getenv('VIRTUAL_ENV')
52
if venv_path then
53
if is_windows() then
54
- return venv_path .. '\\Scripts\\python.exe'
+ return venv_path .. '\\Scripts\\python.exe'
55
end
56
return venv_path .. '/bin/python'
57
58
+
59
+ venv_path = os.getenv("CONDA_PREFIX")
60
+ if venv_path then
61
+ if is_windows() then
62
+ return venv_path .. '\\python.exe'
63
+ end
64
+ return venv_path .. '/bin/python'
65
66
67
if M.resolve_python then
68
assert(type(M.resolve_python) == "function", "resolve_python must be a function")
69
return M.resolve_python()
0 commit comments