diff --git a/lua/neotest-python/base.lua b/lua/neotest-python/base.lua index f8bd62a..f4f8159 100644 --- a/lua/neotest-python/base.lua +++ b/lua/neotest-python/base.lua @@ -25,6 +25,9 @@ local python_command_mem = {} ---@return string[] function M.get_python_command(root) + if not root then + root = vim.loop.cwd() + end if python_command_mem[root] then return python_command_mem[root] end