From c150dda5f18adac2f3530193b80edc5705370b11 Mon Sep 17 00:00:00 2001 From: Chris Antos Date: Wed, 3 Jul 2024 12:26:29 -0700 Subject: [PATCH] Suppress error messages from python during pip completions. --- pip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip.lua b/pip.lua index 41bb448..8364d4f 100644 --- a/pip.lua +++ b/pip.lua @@ -7,7 +7,7 @@ local w = require("tables").wrap local parser = clink.arg.new_parser local function pip_libs_list(token) - local handle = io.popen('python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"') + local handle = io.popen('2>nul python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"') local python_lib_path = handle:read("*a") handle:close()