From 3ee3174e30e33c9d58fa07b0a73a6e180474b59c Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 6 Mar 2023 17:53:57 +0100 Subject: fix: fix writing pyvenv module wrapper (#1073) Closes #1071. --- lua/mason-core/installer/context.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/mason-core/installer/context.lua b/lua/mason-core/installer/context.lua index d5c5583b..8a1e3678 100644 --- a/lua/mason-core/installer/context.lua +++ b/lua/mason-core/installer/context.lua @@ -269,7 +269,7 @@ function InstallContext:write_pyvenv_exec_wrapper(new_executable_rel_path, modul local module_exists, module_err = pcall(function() local result = self.spawn.python { "-c", ("import %s"):format(module), with_paths = { pip3.venv_path(self.cwd:get()) } } - if self.spawn.strict_mode then + if not self.spawn.strict_mode then result:get_or_throw() end end) -- cgit v1.2.3-70-g09d2