From fc87bbaf65da7057c25c08d0ea3b009a9950deb5 Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier <47638216+alexpasmantier@users.noreply.github.com> Date: Sat, 24 Aug 2024 22:06:24 +0200 Subject: [PATCH] fix: python package discovery on target rather than source (#22) --- lua/pymple/update_imports/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/pymple/update_imports/init.lua b/lua/pymple/update_imports/init.lua index aecd42a..7fc1000 100644 --- a/lua/pymple/update_imports/init.lua +++ b/lua/pymple/update_imports/init.lua @@ -72,7 +72,7 @@ function M.prepare_jobs(source, destination, filetypes, python_root) if m_job then table.insert(replace_jobs, m_job) end - elseif utils.recursive_dir_contains_python_files(source) then + elseif utils.recursive_dir_contains_python_files(destination) then log.debug("Operating on a directory") local m_job = make_monolithic_imports_job(s, d, filetypes) if m_job then