fix: use correct separator

See https://github.com/nvim-neotest/neotest/issues/118
This commit is contained in:
Rónán Carrigan
2022-09-28 09:02:29 +01:00
parent 288e58b83d
commit a0c5c567fb

View File

@@ -5,7 +5,7 @@ local base = require("neotest-python.base")
local function script_path() local function script_path()
local str = debug.getinfo(2, "S").source:sub(2) local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)") return str:match(("(.*%s)"):format(lib.files.sep))
end end
local python_script = (Path.new(script_path()):parent():parent() / "neotest.py").filename local python_script = (Path.new(script_path()):parent():parent() / "neotest.py").filename