From eb8fa2c48c5cca17efb24d926cf1441af96014fa Mon Sep 17 00:00:00 2001 From: Nick <98094840+nikita-orca@users.noreply.github.com> Date: Mon, 3 Oct 2022 10:44:16 +0300 Subject: [PATCH] fix: assing script path var (#18) --- lua/neotest-python/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/neotest-python/init.lua b/lua/neotest-python/init.lua index 4359a49..900e91b 100644 --- a/lua/neotest-python/init.lua +++ b/lua/neotest-python/init.lua @@ -126,9 +126,10 @@ function PythonNeotestAdapter.build_spec(args) if position then table.insert(script_args, position.id) end + local python_script = get_script() local command = vim.tbl_flatten({ python, - get_script(), + python_script, script_args, }) local strategy_config = get_strategy_config(args.strategy, python, python_script, script_args)